var GTPL = {};
$.extend({encode: function(e) {
        return("" + e).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")
    }});
GTPL.address_main = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="clearfix" style="line-height:22px;">   <h3 class="title-color font14 fl">     收货人信息   </h3>   ');
            if (typeof isShowksg !== "undefined" && isShowksg != null && (typeof isShowksg === "function" ? isShowksg.call($item) : isShowksg)) {
                __.push('    <div class="ksgou-payment-body fl">     <i class="c-i arrowleft_yellow"></i><span>请您完善快速购信息后再提交订单！</span>    </div>    ')
            }
            __.push("   ");
            if (typeof ($page.site != "allowance") !== "undefined" && $page.site != "allowance" != null && (typeof ($page.site != "allowance") === "function" ? ($page.site != "allowance").call($item) : $page.site != "allowance")) {
                __.push('   <div class="newaddress fr" id="id_newAddress_btn" style="height:22px;line-height:22px;">    <a class="new_add clearfix i-block" href="javascript:void(0)" style="line-height:22px;">     <em class="c-i addicon fl"></em><span class="fl i-block" >新增收货人地址</span>    </a>   </div>   ')
            }
            __.push("  </div>  ");
            if (typeof (list && list.length == 1) !== "undefined" && (list && list.length == 1) != null && (typeof (list && list.length == 1) === "function" ? (list && list.length == 1).call($item) : list && list.length == 1)) {
                __.push('  <div class="nInfos pr" id="addname" style="padding-bottom:29px;">  ')
            } else if (true && true) {
                __.push('  <div class="nInfos pr" id="addname">  ')
            }
            __.push('      <div id="addressBox" class="addname-warp">          ');
            if (typeof ($config.shoppingAddressAtom.more == "Y") !== "undefined" && $config.shoppingAddressAtom.more == "Y" != null && (typeof ($config.shoppingAddressAtom.more == "Y") === "function" ? ($config.shoppingAddressAtom.more == "Y").call($item) : $config.shoppingAddressAtom.more == "Y")) {
                __.push('          <div class="pr over_flow">          ')
            } else if (typeof (list.length < 5) !== "undefined" && list.length < 5 != null && (typeof (list.length < 5) === "function" ? (list.length < 5).call($item) : list.length < 5)) {
                __.push('          <div class="pr over_flow">          ')
            } else if (true && true) {
                __.push('    <div class="pr h180 over_flow" id="address_scroll_div">          ')
            }
            __.push("              ");
            if (typeof ($config.shoppingAddressAtom.more == "Y") !== "undefined" && $config.shoppingAddressAtom.more == "Y" != null && (typeof ($config.shoppingAddressAtom.more == "Y") === "function" ? ($config.shoppingAddressAtom.more == "Y").call($item) : $config.shoppingAddressAtom.more == "Y")) {
                __.push('              <ul class="addname" g-scroll style="top:0px;">              ')
            } else if (typeof (list.length < 5) !== "undefined" && list.length < 5 != null && (typeof (list.length < 5) === "function" ? (list.length < 5).call($item) : list.length < 5)) {
                __.push('              <ul class="addname" g-scroll style="top:0px;">              ')
            } else if (true && true) {
                __.push('     <ul class="addname pabs" g-scroll style="top:0px;">              ')
            }
            __.push("      ");
            if (typeof list !== "undefined" && list != null) {
                $.each(typeof list === "function" ? list.call($item) : list, function($index, $value) {
                    with (this) {
                        __.push("       ");
                        if (typeof ($config.shoppingAddressAtom.more == "N" || (typeof selected == "undefined" ? false : selected)) !== "undefined" && ($config.shoppingAddressAtom.more == "N" || (typeof selected == "undefined" ? false : selected)) != null && (typeof ($config.shoppingAddressAtom.more == "N" || (typeof selected == "undefined" ? false : selected)) === "function" ? ($config.shoppingAddressAtom.more == "N" || (typeof selected == "undefined" ? false : selected)).call($item) : $config.shoppingAddressAtom.more == "N" || (typeof selected == "undefined" ? false : selected))) {
                            __.push("       ");
                            if (typeof ($index == list.length - 1 || $config.shoppingAddressAtom.more == "Y") !== "undefined" && ($index == list.length - 1 || $config.shoppingAddressAtom.more == "Y") != null && (typeof ($index == list.length - 1 || $config.shoppingAddressAtom.more == "Y") === "function" ? ($index == list.length - 1 || $config.shoppingAddressAtom.more == "Y").call($item) : $index == list.length - 1 || $config.shoppingAddressAtom.more == "Y")) {
                                __.push('       <li class="infofirst clearfix pr" g-hover-up style="padding-bottom:1px">       ')
                            } else if (true && true) {
                                __.push('       <li class="infofirst clearfix pr" g-hover-up>       ')
                            }
                            __.push('       <div class="hover clearfix">        ');
                            if (typeof selected !== "undefined" && selected != null && (typeof selected === "function" ? selected.call($item) : selected)) {
                                __.push('        <a href="javascript:void 0" class="fl btn btn-check btn-checked mw150 mr10" >        ')
                            } else if (true && true) {
                                __.push('        <a href="javascript:void 0" class="fl btn btn-check mw150 mr10" g-btn-path="list,');
                                if (typeof $index !== "undefined" && $index != null) {
                                    __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                }
                                __.push('"  g-sbtn-path="list,');
                                if (typeof $index !== "undefined" && $index != null) {
                                    __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                }
                                __.push('">        ')
                            }
                            __.push('            <span class="name name_over2 fl">');
                            if (typeof name !== "undefined" && name != null) {
                                __.push($.encode(typeof name === "function" ? name.call($item) : name))
                            }
                            __.push('</span><em class="area_over fl w45">');
                            if (typeof nameArea !== "undefined" && nameArea != null) {
                                __.push($.encode(typeof nameArea === "function" ? nameArea.call($item) : nameArea))
                            }
                            __.push("</em>         ");
                            if (typeof selected !== "undefined" && selected != null && (typeof selected === "function" ? selected.call($item) : selected)) {
                                __.push('         <i class="c-i chose_icon"></i>          ')
                            }
                            __.push('                         </a>        <div class="fl clearfix h30 o_f w520">         <span class="j-cityname mr10">');
                            if (typeof areas[0] !== "undefined" && areas[0] != null) {
                                __.push($.encode(typeof areas[0] === "function" ? areas[0].call($item) : areas[0]))
                            }
                            __.push('</span>          <span class="h_area mr10">');
                            if (typeof areas[1] !== "undefined" && areas[1] != null) {
                                __.push($.encode(typeof areas[1] === "function" ? areas[1].call($item) : areas[1]))
                            }
                            __.push('</span>         <span class="purview mr10">');
                            if (typeof areas[2] !== "undefined" && areas[2] != null) {
                                __.push($.encode(typeof areas[2] === "function" ? areas[2].call($item) : areas[2]))
                            }
                            __.push('</span>         <span class="deadd mr10 i-block">');
                            if (typeof areas[3] !== "undefined" && areas[3] != null) {
                                __.push($.encode(typeof areas[3] === "function" ? areas[3].call($item) : areas[3]))
                            }
                            __.push('</span>         <span class="tp-cell">                    ');
                            if (typeof origin.mobileNumber !== "undefined" && origin.mobileNumber != null && (typeof origin.mobileNumber === "function" ? origin.mobileNumber.call($item) : origin.mobileNumber)) {
                                __.push("           ");
                                if (typeof origin.mobileNumber !== "undefined" && origin.mobileNumber != null) {
                                    __.push($.encode(typeof origin.mobileNumber === "function" ? origin.mobileNumber.call($item) : origin.mobileNumber))
                                }
                                __.push("          ")
                            } else if (true && true) {
                                __.push("           ");
                                if (typeof $config.pwdTelphone !== "undefined" && $config.pwdTelphone != null) {
                                    __.push($.encode($config.pwdTelphone(origin.phoneNumber)))
                                }
                                __.push("          ")
                            }
                            __.push("          </span>         </div>        ");
                            if (typeof isdefault !== "undefined" && isdefault != null && (typeof isdefault === "function" ? isdefault.call($item) : isdefault)) {
                                __.push('        <span class="bga5 fontf ml10" style="  padding: 1px 2px 1px 4px;">默认地址</span>        ')
                            }
                            __.push("        ");
                            if (typeof (list.length != 1) !== "undefined" && list.length != 1 != null && (typeof (list.length != 1) === "function" ? (list.length != 1).call($item) : list.length != 1)) {
                                __.push('        <span class="changefix pabs hide" g-hover g-delete-path="list,');
                                if (typeof $index !== "undefined" && $index != null) {
                                    __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                }
                                __.push('">删除</span>         ')
                            }
                            __.push('        <span class="delobj pabs hide" g-hover g-modify-path="list,');
                            if (typeof $index !== "undefined" && $index != null) {
                                __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                            }
                            __.push('" >修改</span>                       ');
                            if (typeof $config.isDisabledDefaultAddress !== "undefined" && $config.isDisabledDefaultAddress != null && $config.isDisabledDefaultAddress(isdefault)) {
                                __.push("                       ")
                            } else if (true && true) {
                                __.push('                       <span class="changefix pabs default_add hide" g-hover g-default-path="list,');
                                if (typeof $index !== "undefined" && $index != null) {
                                    __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                }
                                __.push('">设置为默认地址</span>                       ')
                            }
                            __.push("       </div>      </li>       ")
                        }
                        __.push("      ")
                    }
                })
            }
            __.push("     </ul>    </div>       </div>      ");
            if (typeof (list.length > 1) !== "undefined" && list.length > 1 != null && (typeof (list.length > 1) === "function" ? (list.length > 1).call($item) : list.length > 1)) {
                __.push("       ");
                if (typeof ($config.shoppingAddressAtom.more == "Y") !== "undefined" && $config.shoppingAddressAtom.more == "Y" != null && (typeof ($config.shoppingAddressAtom.more == "Y") === "function" ? ($config.shoppingAddressAtom.more == "Y").call($item) : $config.shoppingAddressAtom.more == "Y")) {
                    __.push('       <a href="javascript:void 0" class="btn link" g-more-path g-value="N">        <span class="fl">更多地址</span>        <i class="c-i fd-icon fl" style="margin-top:5px;"></i>       </a>    ')
                } else if (true && true) {
                    __.push('     <a href="javascript:void 0" class="btn link" g-more-path g-value="Y">      <span class="fl">收起地址</span>        <i class="c-i more-icon fl" style="margin-top:5px;"></i>     </a>       ')
                }
                __.push("      ")
            }
            __.push("  </div>")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.address_new = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="addpop addpopwarp pr bgwhite box-sd2" id="id_newAddress">    <div class="addInput popbd pr">    ');
            if (typeof close !== "undefined" && close != null && (typeof close === "function" ? close.call($item) : close)) {
                __.push('     <a id="closeaddress" class="closed c-i closebtn-new pabs" href="javascript:void(0)"></a>     ')
            }
            __.push('      <div class="add_table">          <div class="pr">            <div class="pabs" style="top:132px;right:76px;width:193px">                <div style="height:6px;"></div>                <p class="hide" style="margin-left:5px;"  g-tip-validate="phone" >   </p>                <p class="hide" style="margin-left:5px;" g-tip-validate="call">   </p>                <p class="hide" style="margin-left:5px;" g-tip-validate="phone-call">   </p>            </div>          </div>        <table width="100%" cellspacing="0" cellpadding="0">          <tbody>          <tr>            <td align="right"><i class="fontRed">* </i>收货人：</td>            <td colspan="4">              ');
            if (typeof $config.isReadOnlyConsignee !== "undefined" && $config.isReadOnlyConsignee != null && $config.isReadOnlyConsignee()) {
                __.push("                ");
                if (typeof name !== "undefined" && name != null) {
                    __.push($.encode(typeof name === "function" ? name.call($item) : name))
                }
                __.push("              ")
            } else if (true && true) {
                __.push('                <input                 name="consignee"                             g-validate="consignee"                type="text"                 style="width:142px"                 class="form-control fl"                value="');
                if (typeof name !== "undefined" && name != null) {
                    __.push($.encode(typeof name === "function" ? name.call($item) : name))
                }
                __.push('" >              ')
            }
            __.push("              ");
            if (typeof ($page.site == "allowance") !== "undefined" && $page.site == "allowance" != null && (typeof ($page.site == "allowance") === "function" ? ($page.site == "allowance").call($item) : $page.site == "allowance")) {
                __.push('              <a href="/save/energy/allowance?productId=');
                if (typeof origin.allowanceProId !== "undefined" && origin.allowanceProId != null) {
                    __.push($.encode(typeof origin.allowanceProId === "function" ? origin.allowanceProId.call($item) : origin.allowanceProId))
                }
                __.push("&skuId=");
                if (typeof origin.allowanceSkuId !== "undefined" && origin.allowanceSkuId != null) {
                    __.push($.encode(typeof origin.allowanceSkuId === "function" ? origin.allowanceSkuId.call($item) : origin.allowanceSkuId))
                }
                __.push('"              class="btn btn-default">重新填写认证信息</a>              ')
            }
            __.push('              <p class="ntishi fl" g-tip-validate="consignee">               </p>            </td>          </tr>          <tr>            <td align="right"><i class="fontRed">* </i>所在地：</td>            <td colspan="4 ">               <div style="float:left;" class="pr" id="id_address_select">                   <span style="border-color:#e5e5e5;" >                     <a  href="javascript:void(0)" name="address"                     g-validate="address"                    ');
            if (typeof (type == "modify") !== "undefined" && type == "modify" != null && (typeof (type == "modify") === "function" ? (type == "modify").call($item) : type == "modify")) {
                __.push('                    value="');
                if (typeof origin.address.provinceCode !== "undefined" && origin.address.provinceCode != null) {
                    __.push($.encode(typeof origin.address.provinceCode === "function" ? origin.address.provinceCode.call($item) : origin.address.provinceCode))
                }
                __.push(".");
                if (typeof origin.address.cityCode !== "undefined" && origin.address.cityCode != null) {
                    __.push($.encode(typeof origin.address.cityCode === "function" ? origin.address.cityCode.call($item) : origin.address.cityCode))
                }
                __.push(".");
                if (typeof origin.address.countyCode !== "undefined" && origin.address.countyCode != null) {
                    __.push($.encode(typeof origin.address.countyCode === "function" ? origin.address.countyCode.call($item) : origin.address.countyCode))
                }
                __.push(".");
                if (typeof origin.address.townCode !== "undefined" && origin.address.townCode != null) {
                    __.push($.encode(typeof origin.address.townCode === "function" ? origin.address.townCode.call($item) : origin.address.townCode))
                }
                __.push('"                    ')
            } else if (true && true) {
                __.push('                    value=""                    ')
            }
            __.push('                     class="add_select" >                     ');
            if (typeof (type == "modify") !== "undefined" && type == "modify" != null && (typeof (type == "modify") === "function" ? (type == "modify").call($item) : type == "modify")) {
                __.push("                      <span show-label>");
                if (typeof origin.address.provinceName !== "undefined" && origin.address.provinceName != null) {
                    __.push($.encode(typeof origin.address.provinceName === "function" ? origin.address.provinceName.call($item) : origin.address.provinceName))
                }
                __.push("");
                if (typeof origin.address.cityName !== "undefined" && origin.address.cityName != null) {
                    __.push($.encode(typeof origin.address.cityName === "function" ? origin.address.cityName.call($item) : origin.address.cityName))
                }
                __.push("");
                if (typeof origin.address.countyName !== "undefined" && origin.address.countyName != null) {
                    __.push($.encode(typeof origin.address.countyName === "function" ? origin.address.countyName.call($item) : origin.address.countyName))
                }
                __.push("");
                if (typeof origin.address.townName !== "undefined" && origin.address.townName != null) {
                    __.push($.encode(typeof origin.address.townName === "function" ? origin.address.townName.call($item) : origin.address.townName))
                }
                __.push("</span>                      ")
            } else if (true && true) {
                __.push('                      <span show-label class="fl">请选择</span>                      ')
            }
            __.push('                     <i class="c-i select_arrowup ml10 mt10"></i>                     </a>                   </span>             <div class="pr add_out hide">                    <em class="pabs c-i arrowup add_up2"></em>                <i class="pabs c-i closebtn add_close" g-area-close></i>                    <div class="gCity"></div>             </div>              </div>             <!--  <p class="ntishi fl"><span class="nLowLeight">标"*"的为支持货到付款的地区</span></p> -->              <p class="ntishi fl" g-tip-validate="address"></p>            </td>          </tr>          <tr>            <td align="right"><i class="fontRed">* </i>详细地址：</td>            <td colspan="4">              <input name="detailAddress" g-validate="detailAddress" type="text" style="width:520px" class="form-control fl"              ');
            if (typeof (type == "modify") !== "undefined" && type == "modify" != null && (typeof (type == "modify") === "function" ? (type == "modify").call($item) : type == "modify")) {
                __.push('              value="');
                if (typeof origin.address.detailedAddress !== "undefined" && origin.address.detailedAddress != null) {
                    __.push($.encode(typeof origin.address.detailedAddress === "function" ? origin.address.detailedAddress.call($item) : origin.address.detailedAddress))
                }
                __.push('"              ')
            }
            __.push('              >              <p class="ntishi fl" g-tip-validate="detailAddress"></p>            </td>          </tr>          <tr class="ntelEmail"  g-validate="phone-call">            <td width="110" align="right"><i class="fontRed">* </i>手机号码：</td>            <td width="245">              <input type="" name="phone" g-validate="phone" style="width:209px" class="form-control fl"              ');
            if (typeof (type == "modify") !== "undefined" && type == "modify" != null && (typeof (type == "modify") === "function" ? (type == "modify").call($item) : type == "modify")) {
                __.push('              value="');
                if (typeof origin.mobileNumber !== "undefined" && origin.mobileNumber != null) {
                    __.push($.encode(typeof origin.mobileNumber === "function" ? origin.mobileNumber.call($item) : origin.mobileNumber))
                }
                __.push('"              ')
            }
            __.push('              >              <p class="ntishi fl"><span class="nLowLeight">或</span></p>            </td>            <td width="65" align="right">固定电话：</td>            <td class="pr">              <input name="call" type="text"  g-validate="call" style="width:209px" class="form-control fl"              ');
            if (typeof (type == "modify") !== "undefined" && type == "modify" != null && (typeof (type == "modify") === "function" ? (type == "modify").call($item) : type == "modify")) {
                __.push('              value="');
                if (typeof origin.phoneNumber !== "undefined" && origin.phoneNumber != null) {
                    __.push($.encode(typeof origin.phoneNumber === "function" ? origin.phoneNumber.call($item) : origin.phoneNumber))
                }
                __.push('"              ')
            }
            __.push('              >              <p class="fl" style="visibility: hidden;">xxxxxxxxxxx</p>              <p class="fl" style="visibility: hidden;">xxxxxxxxxxx</p>                          </td>          </tr>          <tr>            <td align="right">邮件：</td>            <td colspan="4">              <input name="email" type="text" g-validate="email" style="width:209px" class="form-control fl"');
            if (typeof (type == "modify") !== "undefined" && type == "modify" != null && (typeof (type == "modify") === "function" ? (type == "modify").call($item) : type == "modify")) {
                __.push('              value="');
                if (typeof origin.email !== "undefined" && origin.email != null) {
                    __.push($.encode(typeof origin.email === "function" ? origin.email.call($item) : origin.email))
                }
                __.push('"              ')
            }
            __.push('              >              <p class="ntishi fl"><span class="nLowLeight">方便您实时接收订单状态提醒</span></p>              <p class="ntishi fl" g-tip-validate="email"></p>            </td>          </tr>          <tr>            <td align="right"></td>            <td colspan="4">              <span class="default_address">              ');
            if (typeof $config.isDisabledDefaultAddress !== "undefined" && $config.isDisabledDefaultAddress != null && $config.isDisabledDefaultAddress()) {
                __.push("              ")
            } else if (true && true) {
                __.push("                  ");
                if (typeof (type == "modify") !== "undefined" && type == "modify" != null && (typeof (type == "modify") === "function" ? (type == "modify").call($item) : type == "modify")) {
                    __.push('                  <b class="c-i ');
                    if (typeof (isdefault ? "checkbox_chose" : "checkboxs") !== "undefined" && (isdefault ? "checkbox_chose" : "checkboxs") != null) {
                        __.push($.encode(typeof (isdefault ? "checkbox_chose" : "checkboxs") === "function" ? (isdefault ? "checkbox_chose" : "checkboxs").call($item) : isdefault ? "checkbox_chose" : "checkboxs"))
                    }
                    __.push(' fl" name="defaultAddress" value="');
                    if (typeof (isdefault ? 1 : 0) !== "undefined" && (isdefault ? 1 : 0) != null) {
                        __.push($.encode(typeof (isdefault ? 1 : 0) === "function" ? (isdefault ? 1 : 0).call($item) : isdefault ? 1 : 0))
                    }
                    __.push('" ></b>                  ')
                } else if (true && true) {
                    __.push('                  <b class="c-i checkboxs fl" name="defaultAddress" value="0" ></b>                  ')
                }
                __.push('              <em class="fl">设置默认地址</em></span>              ')
            }
            __.push('             </td>          </tr>        </tbody></table>      </div>     <a href="javascript:void 0" class="btn btn-primary btn-large" style="margin-left: 110px;margin-top: 10px;" id="id_saveAddress">保存收货信息</a>    </div>  </div>')
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.authorization_main = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<h3 class="title-color font14">身份授权</h3>  <div class="identity_in">   <span class="identity_name mr10">');
            if (typeof idCardRealName !== "undefined" && idCardRealName != null) {
                __.push($.encode(typeof idCardRealName === "function" ? idCardRealName.call($item) : idCardRealName))
            }
            __.push('</span>   <span class="cart_number mr20">');
            if (typeof idCardNumber !== "undefined" && idCardNumber != null) {
                __.push($.encode(typeof idCardNumber === "function" ? idCardNumber.call($item) : idCardNumber))
            }
            __.push('</span>    <a href="javascript:void(0)" class="identity_change ml10" id="modify" >修改</a>   </div>')
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.authorization_modify = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="identity_fill pr bgwhite" g-pipe>   ');
            if (typeof notAuth !== "undefined" && notAuth != null && notAuth.call($item, im)) {
                __.push("   ")
            } else if (true && true) {
                __.push('   <em class="c-i closebtn pabs close_window" g-click="dialogHide"></em>   ')
            }
            __.push('   <p >请填写正确的收货人身份信息，并尽量保证与支付人身份信息一致，我们将向海关进行申报<br>如不一致可能导致通关失败。您的信息将被妥善保管和使用。</p>   <div class="">    <dl class="clearfix">     <dt class="fl w80 text-right mr20"><b class="fontRed pdl_r5">*</b>姓名：</dt>     <dd class="fl"><input class="form-control" value="');
            if (typeof data.idCardRealName !== "undefined" && data.idCardRealName != null) {
                __.push($.encode(typeof data.idCardRealName === "function" ? data.idCardRealName.call($item) : data.idCardRealName))
            }
            __.push('" style="width:161px;" g-validate="hwg-name"></dd>     <dd class="fl ml10 fontRed" g-tip-validate="hwg-name"></dd>    </dl>    <dl class="clearfix">     <dt class="fl w80 text-right mr20"><b class="fontRed pdl_r5">*</b>身份证号：</dt>     <dd class="fl"><input class="form-control" value="');
            if (typeof data.idCardNumber !== "undefined" && data.idCardNumber != null) {
                __.push($.encode(typeof data.idCardNumber === "function" ? data.idCardNumber.call($item) : data.idCardNumber))
            }
            __.push('" style="width:161px;" g-validate="hwg-card" ');
            if (typeof data.idCardNumber !== "undefined" && data.idCardNumber != null && (typeof data.idCardNumber === "function" ? data.idCardNumber.call($item) : data.idCardNumber)) {
                __.push(' no-modify="y" ')
            }
            __.push('></dd>     <dd class="fl ml10 fontRed" g-tip-validate="hwg-card"></dd>    </dl>   </div>   <div style="clear:both;"></div>   <div class="identity_btn clearfix mt20">    <a class="btn btn-primary btn-w83 fl mr20 ml20" href="javascript:void(0)" g-click="saveAction">保存</a>    ');
            if (typeof notAuth !== "undefined" && notAuth != null && notAuth.call($item, im)) {
                __.push("    ")
            } else if (true && true) {
                __.push('    <a class="btn btn-default btn-w83  fl ml10" href="javascript:void(0)" g-click="dialogHide">取消</a>    ')
            }
            __.push("   </div>  </div>")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.commitOrder_main = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="clearfix" style="border-top:solid 1px #e6e6e6;padding-top:13px;">    <p class="text-right  clearfix"><span class="w185 fr pr20">¥');
            if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                __.push($.encode($config.formatAmount(amount)))
            }
            __.push('</span><span class="fr"><em class="fontRed">');
            if (typeof total !== "undefined" && total != null) {
                __.push($.encode(typeof total === "function" ? total.call($item) : total))
            }
            __.push("</em>件商品，总金额：</span></p>   ");
            if (typeof $config.VBLE.youhuiquan2 !== "undefined" && $config.VBLE.youhuiquan2 != null && $config.VBLE.youhuiquan2()) {
                __.push('   <p class="text-right  clearfix"><span class="w185 fr pr20">-¥');
                if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                    __.push($.encode($config.formatAmount(coupon)))
                }
                __.push('</span><span class="fr">优惠券：</span></p>   ')
            }
            __.push("   ");
            if (typeof (ppcAmount != null) !== "undefined" && ppcAmount != null != null && (typeof (ppcAmount != null) === "function" ? (ppcAmount != null).call($item) : ppcAmount != null)) {
                __.push('   <p class="text-right  clearfix"><span class="w185 fr pr20">-¥');
                if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                    __.push($.encode($config.formatAmount(ppcAmount)))
                }
                __.push('</span><span class="fr">美通卡：</span></p>   ')
            }
            __.push('      <p class="text-right  clearfix"><span class="w185 fr pr20">-¥');
            if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                __.push($.encode($config.formatAmount(balance)))
            }
            __.push('</span><span class="fr">余额：</span></p>   ');
            if (typeof ($page.site == "haiwaigou") !== "undefined" && $page.site == "haiwaigou" != null && (typeof ($page.site == "haiwaigou") === "function" ? ($page.site == "haiwaigou").call($item) : $page.site == "haiwaigou")) {
                __.push('     <p class="text-right  clearfix"><span class="w185 fr pr20 }">+¥');
                if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                    __.push($.encode($config.formatAmount(hwgAmount)))
                }
                __.push('</span><span class="fr">税费：</span></p>   ')
            } else if (typeof ($page.site == "allowance") !== "undefined" && $page.site == "allowance" != null && (typeof ($page.site == "allowance") === "function" ? ($page.site == "allowance").call($item) : $page.site == "allowance")) {
                __.push('   <p class="text-right  clearfix"><span class="w185 fr pr20">-¥');
                if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                    __.push($.encode($config.formatAmount(allowanceAmount)))
                }
                __.push('</span><span class="fr">节能补贴：</span></p>   ')
            }
            __.push("   <!-- 美豆 -->   ");
            if (typeof $config.VBLE.shiyongMD !== "undefined" && $config.VBLE.shiyongMD != null && $config.VBLE.shiyongMD()) {
                __.push("     ");
                if (typeof (gomedo != null) !== "undefined" && gomedo != null != null && (typeof (gomedo != null) === "function" ? (gomedo != null).call($item) : gomedo != null)) {
                    __.push('    <p class="text-right  clearfix"><span class="w185 fr pr20">-¥');
                    if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                        __.push($.encode($config.formatAmount(gomedo)))
                    }
                    __.push('</span><span class="fr">美豆：</span></p>    ')
                }
                __.push("   ")
            }
            __.push('   <p class="text-right  clearfix"><span class="w185 fr pr20" >+¥');
            if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                __.push($.encode($config.formatAmount(haulage)))
            }
            __.push('</span><span class="fr">运费：</span></p>   <div style="height:28px;"></div>   <div class="text-right play clearfix">    <div class="w185 fr" id="id_commit_div">     ');
            if (typeof $config.isDisabledTJDD !== "undefined" && $config.isDisabledTJDD != null && $config.isDisabledTJDD()) {
                __.push('      <a href="javascript:void 0" class="btn btn-disabled btn-large fr"        ');
                if (typeof ($page.site == "presell") !== "undefined" && $page.site == "presell" != null && (typeof ($page.site == "presell") === "function" ? ($page.site == "presell").call($item) : $page.site == "presell")) {
                    __.push('      style="border-bottom-right-radius: 0;height:60px;line-height:60px;"       ')
                } else if (true && true) {
                    __.push('      style="border-bottom-right-radius: 0;"      ')
                }
                __.push("      >提交订单</a>     ")
            } else if (true && true) {
                __.push('     <a href="javascript:void 0" class="btn btn-primary btn-large fr" id="id_commit"      ');
                if (typeof ($page.site == "presell") !== "undefined" && $page.site == "presell" != null && (typeof ($page.site == "presell") === "function" ? ($page.site == "presell").call($item) : $page.site == "presell")) {
                    __.push('     style="border-bottom-right-radius: 0;height:60px;line-height:60px;"      ')
                } else if (true && true) {
                    __.push('     style="border-bottom-right-radius: 0;"     ')
                }
                __.push("     >提交订单</a>     ")
            }
            __.push("    </div>    ");
            if (typeof ($page.site == "presell") !== "undefined" && $page.site == "presell" != null && (typeof ($page.site == "presell") === "function" ? ($page.site == "presell").call($item) : $page.site == "presell")) {
                __.push('    <div class="fr" agreen-play>     <div      style="line-height:24px;margin-top:17px;"     >应付款总金额：<em class="fontRed strong font16">¥');
                if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                    __.push($.encode($config.formatAmount(applyAmount)))
                }
                __.push('</em></div>     <div      style="line-height:24px;"     >     ');
                if (typeof $config.shoppingAtom.presell_tyzfdj !== "undefined" && $config.shoppingAtom.presell_tyzfdj != null && (typeof $config.shoppingAtom.presell_tyzfdj === "function" ? $config.shoppingAtom.presell_tyzfdj.call($item) : $config.shoppingAtom.presell_tyzfdj)) {
                    __.push('     <i class="c-i checkbox_chose fl" style="margin-top:6px;margin-left:42px;"></i>     ')
                } else if (true && true) {
                    __.push('     <i class="c-i checkboxs fl" style="margin-top:6px;margin-left:42px;"></i>     ')
                }
                __.push("     同意支付定金</div>    </div>    ")
            } else if (true && true) {
                __.push('    <span class="fr">     应付款总金额：<em class="fontRed strong font16">¥');
                if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                    __.push($.encode($config.formatAmount(applyAmount)))
                }
                __.push("</em></span>    ")
            }
            __.push("   </div>  ");
            if (typeof $config.VBLE.songhuorenxinxi !== "undefined" && $config.VBLE.songhuorenxinxi != null && $config.VBLE.songhuorenxinxi()) {
                __.push('    <div style="border:solid 1px #e6e6e6;border-top:none;padding-top:13px;color:#888;">   <p class="text-right pr10">    <span class="mr10">');
                if (typeof p !== "undefined" && p != null) {
                    __.push($.encode(typeof p === "function" ? p.call($item) : p))
                }
                __.push('</span>    <span class="mr10">');
                if (typeof c !== "undefined" && c != null) {
                    __.push($.encode(typeof c === "function" ? c.call($item) : c))
                }
                __.push('</span>    <span class="mr10">');
                if (typeof a !== "undefined" && a != null) {
                    __.push($.encode(typeof a === "function" ? a.call($item) : a))
                }
                __.push('</span>    <span class="mr10">');
                if (typeof j !== "undefined" && j != null) {
                    __.push($.encode(typeof j === "function" ? j.call($item) : j))
                }
                __.push('</span>    <span class="mr10 name_over2" title="');
                if (typeof d !== "undefined" && d != null) {
                    __.push($.encode(typeof d === "function" ? d.call($item) : d))
                }
                __.push('" style="width: auto;max-width: 570px;height: 16px;line-height:16px;vertical-align: middle;vertical-align: bottom\\0;">');
                if (typeof d !== "undefined" && d != null) {
                    __.push($.encode(typeof d === "function" ? d.call($item) : d))
                }
                __.push('</span>   </p>   <p class="text-right mb10 pr20 pr10">    <span class="mr10">');
                if (typeof sname !== "undefined" && sname != null) {
                    __.push($.encode(typeof sname === "function" ? sname.call($item) : sname))
                }
                __.push('</span>    <span class="mr10">');
                if (typeof phone !== "undefined" && phone != null) {
                    __.push($.encode(typeof phone === "function" ? phone.call($item) : phone))
                }
                __.push("</span>   </p>   </div>  ")
            }
            __.push("   </div>")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.entity_card_main = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<h3 class="font14">身份验证</h3>  <div class="content">   <div class="row clearfix">    <div class="col-1">     <span class="fontRed">*</span>手机号码：    </div>    <div class="col-2">     <input type="text" class="form-control" id="diqye-mbile" value="');
            if (typeof sm !== "undefined" && sm != null) {
                __.push($.encode(typeof sm === "function" ? sm.call($item) : sm))
            }
            __.push('">     <span class="fontGray tip">用于接收短信验证码，以便支付成功后在订单详情页查看电子卡卡号和密码。</span>     <span class="errfix">错误提示</span>    </div>   </div>  </div>')
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.invoice_main = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="invoice">   <h3 class="invoice_h3">发票信息</h3>   <ul class="invoice_lists ml20">   ');
            if (typeof ($page.site == "haiwaigou") !== "undefined" && $page.site == "haiwaigou" != null && (typeof ($page.site == "haiwaigou") === "function" ? ($page.site == "haiwaigou").call($item) : $page.site == "haiwaigou")) {
                __.push('   <li>    <label class="lb_check fl mr28">     海外购商品不提供发票    </label>   </li>   ')
            } else if (typeof (invoiceNeedType == "Y" || invoiceNeedType == "YD") !== "undefined" && (invoiceNeedType == "Y" || invoiceNeedType == "YD") != null && (typeof (invoiceNeedType == "Y" || invoiceNeedType == "YD") === "function" ? (invoiceNeedType == "Y" || invoiceNeedType == "YD").call($item) : invoiceNeedType == "Y" || invoiceNeedType == "YD")) {
                __.push("    <li>     ");
                if (typeof (open == false) !== "undefined" && open == false != null && (typeof (open == false) === "function" ? (open == false).call($item) : open == false)) {
                    __.push("     ");
                    if (typeof selectedHead.content !== "undefined" && selectedHead.content != null && (typeof selectedHead.content === "function" ? selectedHead.content.call($item) : selectedHead.content)) {
                        __.push('     <span class="mr15">');
                        if (typeof selectedHead.content !== "undefined" && selectedHead.content != null) {
                            __.push($.encode(typeof selectedHead.content === "function" ? selectedHead.content.call($item) : selectedHead.content))
                        }
                        __.push("</span>     ")
                    }
                    __.push('     <span class="mr15">');
                    if (typeof selectedInvoce.invoiceType.label !== "undefined" && selectedInvoce.invoiceType.label != null) {
                        __.push($.encode(typeof selectedInvoce.invoiceType.label === "function" ? selectedInvoce.invoiceType.label.call($item) : selectedInvoce.invoiceType.label))
                    }
                    __.push('</span>     <span class="mr15">');
                    if (typeof selectedContentType.label !== "undefined" && selectedContentType.label != null) {
                        __.push($.encode(typeof selectedContentType.label === "function" ? selectedContentType.label.call($item) : selectedContentType.label))
                    }
                    __.push("</span>      ");
                    if (typeof (allowUpdate == true) !== "undefined" && allowUpdate == true != null && (typeof (allowUpdate == true) === "function" ? (allowUpdate == true).call($item) : allowUpdate == true)) {
                        __.push('      <a href="javascript:void 0" class="ml20 change" g-modify-path="1">修改</a>          ')
                    }
                    __.push("     ")
                }
                __.push("    </li>   ")
            } else if (typeof (invoiceNeedType == "N") !== "undefined" && invoiceNeedType == "N" != null && (typeof (invoiceNeedType == "N") === "function" ? (invoiceNeedType == "N").call($item) : invoiceNeedType == "N")) {
                __.push('    <li>     <label class="lb_check fl mr28">      不开发票     </label>     ');
                if (typeof (allowUpdate == true) !== "undefined" && allowUpdate == true != null && (typeof (allowUpdate == true) === "function" ? (allowUpdate == true).call($item) : allowUpdate == true)) {
                    __.push('     <a href="javascript:void 0" class="ml20 change" g-modify-path="0">修改</a>     ')
                }
                __.push("    </li>   ")
            }
            __.push("   </ul>  </div>")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.invoice_modify = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="m_invoice box-sd2">   <div class="header clearfix">    <h3>发票信息</h3>    <i  class="c-i closebtn-new close" g-close></i>   </div>   <div class="content ');
            if (typeof (selectedInvoce.invoiceType.code == "2") !== "undefined" && selectedInvoce.invoiceType.code == "2" != null && (typeof (selectedInvoce.invoiceType.code == "2") === "function" ? (selectedInvoce.invoiceType.code == "2").call($item) : selectedInvoce.invoiceType.code == "2")) {
                __.push("zz")
            }
            __.push('">    <div class="col-1">     ');
            if (typeof (invoiceNeedType == "N") !== "undefined" && invoiceNeedType == "N" != null && (typeof (invoiceNeedType == "N") === "function" ? (invoiceNeedType == "N").call($item) : invoiceNeedType == "N")) {
                __.push('      <a href="javascript:void(0)" class="btn btn-check" g-value-path="invoiceNeedType" g-value="Y">开具发票</a>      <a href="javascript:void(0)" class="btn btn-check btn-checked">不开发票<i class="c-i chose_icon"></i>      </a>     ')
            } else if (typeof (invoiceNeedType == "Y") !== "undefined" && invoiceNeedType == "Y" != null && (typeof (invoiceNeedType == "Y") === "function" ? (invoiceNeedType == "Y").call($item) : invoiceNeedType == "Y")) {
                __.push('      <a href="javascript:void(0)" class="btn btn-check btn-checked">开具发票<i class="c-i chose_icon"></i></a>      <a href="javascript:void(0)" class="btn btn-check" g-value-path="invoiceNeedType" g-value="N">不开发票</a>     ')
            } else if (typeof (invoiceNeedType == "YD") !== "undefined" && invoiceNeedType == "YD" != null && (typeof (invoiceNeedType == "YD") === "function" ? (invoiceNeedType == "YD").call($item) : invoiceNeedType == "YD")) {
                __.push('      <a href="javascript:void(0)" class="btn btn-check btn-checked">开具发票<i class="c-i chose_icon"></i></a>      <a href="javascript:void(0)" class="btn btn-check btn-checked btn-disabled">不开发票</a>     ')
            }
            __.push("    </div>   ");
            if (typeof (invoiceNeedType != "N") !== "undefined" && invoiceNeedType != "N" != null && (typeof (invoiceNeedType != "N") === "function" ? (invoiceNeedType != "N").call($item) : invoiceNeedType != "N")) {
                __.push('    <div class="clearfix col">     <div class="label"><i class="fontRed">* </i>发票类型：</div>     <div class="value">      <div>      ');
                if (typeof invoices !== "undefined" && invoices != null) {
                    $.each(typeof invoices === "function" ? invoices.call($item) : invoices, function($index, $value) {
                        with (this) {
                            __.push("       ");
                            if (typeof invoiceType.visible !== "undefined" && invoiceType.visible != null && (typeof invoiceType.visible === "function" ? invoiceType.visible.call($item) : invoiceType.visible)) {
                                __.push("        ");
                                if (typeof (invoiceType.available == false) !== "undefined" && invoiceType.available == false != null && (typeof (invoiceType.available == false) === "function" ? (invoiceType.available == false).call($item) : invoiceType.available == false)) {
                                    __.push('         <a href="javascript:void(0);" class="btn btn-check btn-disabled">          ');
                                    if (typeof invoiceType.label !== "undefined" && invoiceType.label != null) {
                                        __.push($.encode(typeof invoiceType.label === "function" ? invoiceType.label.call($item) : invoiceType.label))
                                    }
                                    __.push("         </a>        ")
                                } else if (typeof invoiceType.selected !== "undefined" && invoiceType.selected != null && (typeof invoiceType.selected === "function" ? invoiceType.selected.call($item) : invoiceType.selected)) {
                                    __.push('         <a href="javascript:void(0);" class="btn btn-check btn-checked">          ');
                                    if (typeof invoiceType.label !== "undefined" && invoiceType.label != null) {
                                        __.push($.encode(typeof invoiceType.label === "function" ? invoiceType.label.call($item) : invoiceType.label))
                                    }
                                    __.push('          <i class="c-i chose_icon"></i>         </a>        ')
                                } else if (true && true) {
                                    __.push('         <a href="javascript:void(0);" class="btn btn-check" g-i-path="invoices,');
                                    if (typeof $index !== "undefined" && $index != null) {
                                        __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                    }
                                    __.push('">          ');
                                    if (typeof invoiceType.label !== "undefined" && invoiceType.label != null) {
                                        __.push($.encode(typeof invoiceType.label === "function" ? invoiceType.label.call($item) : invoiceType.label))
                                    }
                                    __.push("         </a>        ")
                                }
                                __.push("                ");
                                if (typeof (invoiceType.code == "2" && invoiceType.state == "NO_CERTIFICATION") !== "undefined" && (invoiceType.code == "2" && invoiceType.state == "NO_CERTIFICATION") != null && (typeof (invoiceType.code == "2" && invoiceType.state == "NO_CERTIFICATION") === "function" ? (invoiceType.code == "2" && invoiceType.state == "NO_CERTIFICATION").call($item) : invoiceType.code == "2" && invoiceType.state == "NO_CERTIFICATION")) {
                                    __.push('         <span class="fontGray">          首次开具增值税发票请          <a href="');
                                    if (typeof $config.URL.increaseticket !== "undefined" && $config.URL.increaseticket != null) {
                                        __.push($.encode(typeof $config.URL.increaseticket === "function" ? $config.URL.increaseticket.call($item) : $config.URL.increaseticket))
                                    }
                                    __.push('" target="_blank">申请增票认证</a>          ，店铺商品开具请联系商家。         </span>        ')
                                }
                                __.push("       ")
                            }
                            __.push("      ")
                        }
                    })
                }
                __.push('      </div>      <div class="tip">       ');
                if (typeof $config.renderNotice !== "undefined" && $config.renderNotice != null) {
                    __.push($config.renderNotice("fp_tip_" + selectedInvoce.invoiceType.code, selectedInvoce))
                }
                __.push("      </div>     </div>    </div>    ");
                if (typeof (selectedInvoce.invoiceType.code == "2") !== "undefined" && selectedInvoce.invoiceType.code == "2" != null && (typeof (selectedInvoce.invoiceType.code == "2") === "function" ? (selectedInvoce.invoiceType.code == "2").call($item) : selectedInvoce.invoiceType.code == "2")) {
                    __.push('     <div class="clearfix col">      <div class="label">单位名称：</div>      <div class="value l30">');
                    if (typeof selectedInvoce.corpName !== "undefined" && selectedInvoce.corpName != null) {
                        __.push($.encode(typeof selectedInvoce.corpName === "function" ? selectedInvoce.corpName.call($item) : selectedInvoce.corpName))
                    }
                    __.push('</div>     </div>     <div class="clearfix col">      <div class="label">纳税识别号：</div>      <div class="value l30">');
                    if (typeof selectedInvoce.taxpayerNo !== "undefined" && selectedInvoce.taxpayerNo != null) {
                        __.push($.encode(typeof selectedInvoce.taxpayerNo === "function" ? selectedInvoce.taxpayerNo.call($item) : selectedInvoce.taxpayerNo))
                    }
                    __.push('</div>     </div>     <div class="clearfix col">      <div class="label">注册电话：</div>      <div class="value l30">');
                    if (typeof selectedInvoce.registeredPhone !== "undefined" && selectedInvoce.registeredPhone != null) {
                        __.push($.encode(typeof selectedInvoce.registeredPhone === "function" ? selectedInvoce.registeredPhone.call($item) : selectedInvoce.registeredPhone))
                    }
                    __.push('</div>     </div>     <div class="clearfix col">      <div class="label">开户银行：</div>      <div class="value l30">');
                    if (typeof selectedInvoce.taxpayerBank !== "undefined" && selectedInvoce.taxpayerBank != null) {
                        __.push($.encode(typeof selectedInvoce.taxpayerBank === "function" ? selectedInvoce.taxpayerBank.call($item) : selectedInvoce.taxpayerBank))
                    }
                    __.push('</div>     </div>     <div class="clearfix col">      <div class="label">银行账户：</div>      <div class="value l30">');
                    if (typeof selectedInvoce.accountNo !== "undefined" && selectedInvoce.accountNo != null) {
                        __.push($.encode(typeof selectedInvoce.accountNo === "function" ? selectedInvoce.accountNo.call($item) : selectedInvoce.accountNo))
                    }
                    __.push("</div>     </div>    ")
                } else if (true && true) {
                    __.push('     <div class="clearfix col">      <div class="label"><i class="fontRed">* </i>发票抬头：</div>      <div class="value">       ');
                    if (typeof selectedInvoce.headTypes !== "undefined" && selectedInvoce.headTypes != null) {
                        $.each(typeof selectedInvoce.headTypes === "function" ? selectedInvoce.headTypes.call($item) : selectedInvoce.headTypes, function($index, $value) {
                            with (this) {
                                __.push("        ");
                                if (typeof visible !== "undefined" && visible != null && (typeof visible === "function" ? visible.call($item) : visible)) {
                                    __.push("         ");
                                    if (typeof selected !== "undefined" && selected != null && (typeof selected === "function" ? selected.call($item) : selected)) {
                                        __.push('          <a href="javascript:void(0)" class="btn btn-check btn-checked">');
                                        if (typeof label !== "undefined" && label != null) {
                                            __.push($.encode(typeof label === "function" ? label.call($item) : label))
                                        }
                                        __.push('<i class="c-i chose_icon"></i></a>         ')
                                    } else if (true && true) {
                                        __.push('          <a href="javascript:void(0)" class="btn btn-check" g-h-path="');
                                        if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                                            __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                                        }
                                        __.push(",headTypes,");
                                        if (typeof $index !== "undefined" && $index != null) {
                                            __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                        }
                                        __.push('">');
                                        if (typeof label !== "undefined" && label != null) {
                                            __.push($.encode(typeof label === "function" ? label.call($item) : label))
                                        }
                                        __.push("</a>         ")
                                    }
                                    __.push("        ")
                                }
                                __.push("       ")
                            }
                        })
                    }
                    __.push('      </div>     </div>     <div class="clearfix col">      <div class="label"><i class="fontRed">* </i>抬头内容：</div>      <div class="value">       ');
                    if (typeof (selectedHead.code == "0") !== "undefined" && selectedHead.code == "0" != null && (typeof (selectedHead.code == "0") === "function" ? (selectedHead.code == "0").call($item) : selectedHead.code == "0")) {
                        __.push('        <input  type="text" class="form-control"  g-validate="fptt" value="');
                        if (typeof selectedHead.content !== "undefined" && selectedHead.content != null) {
                            __.push($.encode(typeof selectedHead.content === "function" ? selectedHead.content.call($item) : selectedHead.content))
                        }
                        __.push('" value-path="');
                        if (typeof selectedHead.path !== "undefined" && selectedHead.path != null) {
                            __.push($.encode(typeof selectedHead.path === "function" ? selectedHead.path.call($item) : selectedHead.path))
                        }
                        __.push(',content" />        <span class=" ml15 fontGray">请填写使用人的真实姓名</span>       ')
                    } else if (true && true) {
                        __.push('        <input  type="text" class="form-control" g-validate="fptt" value="');
                        if (typeof selectedHead.content !== "undefined" && selectedHead.content != null) {
                            __.push($.encode(typeof selectedHead.content === "function" ? selectedHead.content.call($item) : selectedHead.content))
                        }
                        __.push('" value-path="');
                        if (typeof selectedHead.path !== "undefined" && selectedHead.path != null) {
                            __.push($.encode(typeof selectedHead.path === "function" ? selectedHead.path.call($item) : selectedHead.path))
                        }
                        __.push(',content" />       ')
                    }
                    __.push('       <span class="nError nRed" g-tip-validate="fptt">');
                    if (typeof selectedHead.fptt !== "undefined" && selectedHead.fptt != null) {
                        __.push(typeof selectedHead.fptt === "function" ? selectedHead.fptt.call($item) : selectedHead.fptt)
                    }
                    __.push("</span>      </div>     </div>     ");
                    if (typeof (selectedHead.code == "1") !== "undefined" && selectedHead.code == "1" != null && (typeof (selectedHead.code == "1") === "function" ? (selectedHead.code == "1").call($item) : selectedHead.code == "1")) {
                        __.push('      <div class="clearfix col">       <div class="label">购方税号：</div>       <div class="value">        <input  type="text"         g-validate="gfsh"         class="form-control"          value="');
                        if (typeof selectedInvoce.taxPayerNo !== "undefined" && selectedInvoce.taxPayerNo != null) {
                            __.push($.encode(typeof selectedInvoce.taxPayerNo === "function" ? selectedInvoce.taxPayerNo.call($item) : selectedInvoce.taxPayerNo))
                        }
                        __.push('"         value-path="');
                        if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                            __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                        }
                        __.push(',taxPayerNo"        placeholder="在上海、南通及嘉兴地区注册为公司的用户需要填写"/>        <span class="nError nRed" g-tip-validate="gfsh">');
                        if (typeof selectedInvoce.gfsh !== "undefined" && selectedInvoce.gfsh != null) {
                            __.push(typeof selectedInvoce.gfsh === "function" ? selectedInvoce.gfsh.call($item) : selectedInvoce.gfsh)
                        }
                        __.push("</span>       </div>      </div>     ")
                    }
                    __.push("    ")
                }
                __.push("    ");
                if (typeof (selectedInvoce.invoiceContentTypes && selectedInvoce.invoiceContentTypes.length != 0) !== "undefined" && (selectedInvoce.invoiceContentTypes && selectedInvoce.invoiceContentTypes.length != 0) != null && (typeof (selectedInvoce.invoiceContentTypes && selectedInvoce.invoiceContentTypes.length != 0) === "function" ? (selectedInvoce.invoiceContentTypes && selectedInvoce.invoiceContentTypes.length != 0).call($item) : selectedInvoce.invoiceContentTypes && selectedInvoce.invoiceContentTypes.length != 0)) {
                    __.push('    <div class="clearfix col">     <div class="label"><i class="fontRed">* </i>发票内容：</div>     <div class="value">      ');
                    if (typeof selectedInvoce.invoiceContentTypes !== "undefined" && selectedInvoce.invoiceContentTypes != null) {
                        $.each(typeof selectedInvoce.invoiceContentTypes === "function" ? selectedInvoce.invoiceContentTypes.call($item) : selectedInvoce.invoiceContentTypes, function($index, $value) {
                            with (this) {
                                __.push("       ");
                                if (typeof selected !== "undefined" && selected != null && (typeof selected === "function" ? selected.call($item) : selected)) {
                                    __.push('       <a href="javascript:void(0)" class="btn btn-check btn-checked w54">        ');
                                    if (typeof label !== "undefined" && label != null) {
                                        __.push($.encode(typeof label === "function" ? label.call($item) : label))
                                    }
                                    __.push('        <i class="chose_icon c-i"></i>       </a>        ')
                                } else if (true && true) {
                                    __.push('        <a href="javascript:void(0)" class="btn btn-check w54" g-c-path="');
                                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                                    }
                                    __.push(",invoiceContentTypes,");
                                    if (typeof $index !== "undefined" && $index != null) {
                                        __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                    }
                                    __.push('" >        ');
                                    if (typeof label !== "undefined" && label != null) {
                                        __.push($.encode(typeof label === "function" ? label.call($item) : label))
                                    }
                                    __.push("        </a>        ")
                                }
                                __.push("      ")
                            }
                        })
                    }
                    __.push('     </div>    </div>    <div class="clearfix col b-col">     <div class="label b-label b-tip">&nbsp;</div>     <div class="value b-tip">      ');
                    if (typeof (pType == "G") !== "undefined" && pType == "G" != null && (typeof (pType == "G") === "function" ? (pType == "G").call($item) : pType == "G")) {
                        __.push("      <p>温馨提示：建议发票内容选择明细，以保证您可以享受厂商或国美在线提供的质保服务。</p>      ")
                    } else if (typeof (pType == "GO") !== "undefined" && pType == "GO" != null && (typeof (pType == "GO") === "function" ? (pType == "GO").call($item) : pType == "GO")) {
                        __.push("      <p>温馨提示：建议发票内容选择明细，以保证您可以享受厂商或国美在线提供的质保服务。 非自营商品发票的开具和邮寄等情况，由店铺商家自行决定。如有任何疑问，可联系商家确认。</p>      ")
                    }
                    __.push("     </div>    </div>    ")
                }
                __.push("    ");
                if (typeof (selectedInvoce.invoiceType.code == "1") !== "undefined" && selectedInvoce.invoiceType.code == "1" != null && (typeof (selectedInvoce.invoiceType.code == "1") === "function" ? (selectedInvoce.invoiceType.code == "1").call($item) : selectedInvoce.invoiceType.code == "1")) {
                    __.push('      <div class="clearfix col">      <div class="label"><i class="fontRed">* </i>收票手机：</div>      <div class="value">       <input         type="text"       ');
                    if (typeof selectedInvoce.mobilePhone !== "undefined" && selectedInvoce.mobilePhone != null && (typeof selectedInvoce.mobilePhone === "function" ? selectedInvoce.mobilePhone.call($item) : selectedInvoce.mobilePhone)) {
                        __.push('       no-modify="y"       ')
                    }
                    __.push('       g-validate="spsj"        class="form-control phone_input"        value="');
                    if (typeof selectedInvoce.mobilePhone !== "undefined" && selectedInvoce.mobilePhone != null) {
                        __.push($.encode(typeof selectedInvoce.mobilePhone === "function" ? selectedInvoce.mobilePhone.call($item) : selectedInvoce.mobilePhone))
                    }
                    __.push('"        value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',mobilePhone"        />       <span class="nError nRed" g-tip-validate="spsj">');
                    if (typeof selectedInvoce.spsj !== "undefined" && selectedInvoce.spsj != null) {
                        __.push(typeof selectedInvoce.spsj === "function" ? selectedInvoce.spsj.call($item) : selectedInvoce.spsj)
                    }
                    __.push('</span>      </div>     </div>     <div class="clearfix col">      <div class="label">收票邮箱：</div>      <div class="value">       <input  type="text" g-validate="spyx" class="form-control mail_input" value="');
                    if (typeof selectedInvoce.email !== "undefined" && selectedInvoce.email != null) {
                        __.push($.encode(typeof selectedInvoce.email === "function" ? selectedInvoce.email.call($item) : selectedInvoce.email))
                    }
                    __.push('" value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',email"        />       <span class="nError nRed" g-tip-validate="spyx">');
                    if (typeof selectedInvoce.spyx !== "undefined" && selectedInvoce.spyx != null) {
                        __.push(typeof selectedInvoce.spyx === "function" ? selectedInvoce.spyx.call($item) : selectedInvoce.spyx)
                    }
                    __.push("</span>      </div>     </div>    ")
                }
                __.push("    ");
                if (typeof (selectedInvoce.invoiceType.code == "2") !== "undefined" && selectedInvoce.invoiceType.code == "2" != null && (typeof (selectedInvoce.invoiceType.code == "2") === "function" ? (selectedInvoce.invoiceType.code == "2").call($item) : selectedInvoce.invoiceType.code == "2")) {
                    __.push('     <div class="clearfix col">      <div class="label"><i class="fontRed">* </i>收件人：</div>      <div class="value">       <input type="text" g-validate="zpsjr" class="form-control" value="');
                    if (typeof selectedInvoce.consigneeName !== "undefined" && selectedInvoce.consigneeName != null) {
                        __.push($.encode(typeof selectedInvoce.consigneeName === "function" ? selectedInvoce.consigneeName.call($item) : selectedInvoce.consigneeName))
                    }
                    __.push('" value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',consigneeName">       <span class="nError nRed" g-tip-validate="zpsjr">');
                    if (typeof selectedInvoce.zpsjr !== "undefined" && selectedInvoce.zpsjr != null) {
                        __.push(typeof selectedInvoce.zpsjr === "function" ? selectedInvoce.zpsjr.call($item) : selectedInvoce.zpsjr)
                    }
                    __.push('</span>       </div>     </div>     <div class="clearfix col">      <div class="label"><i class="fontRed">* </i>手机号码：</div>      <div class="value">       <input        type="text"        ');
                    if (typeof selectedInvoce.consigneeMobilePhone !== "undefined" && selectedInvoce.consigneeMobilePhone != null && (typeof selectedInvoce.consigneeMobilePhone === "function" ? selectedInvoce.consigneeMobilePhone.call($item) : selectedInvoce.consigneeMobilePhone)) {
                        __.push('       no-modify="y"       ')
                    }
                    __.push('       g-validate="zpsjhm"        class="form-control"        value="');
                    if (typeof selectedInvoce.consigneeMobilePhone !== "undefined" && selectedInvoce.consigneeMobilePhone != null) {
                        __.push($.encode(typeof selectedInvoce.consigneeMobilePhone === "function" ? selectedInvoce.consigneeMobilePhone.call($item) : selectedInvoce.consigneeMobilePhone))
                    }
                    __.push('"        value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',consigneeMobilePhone">        <span class="nError nRed" g-tip-validate="zpsjhm">');
                    if (typeof selectedInvoce.zpsjhm !== "undefined" && selectedInvoce.zpsjhm != null) {
                        __.push(typeof selectedInvoce.zpsjhm === "function" ? selectedInvoce.zpsjhm.call($item) : selectedInvoce.zpsjhm)
                    }
                    __.push('</span>       </div>     </div>     <div class="clearfix col">      <div class="label"><i class="fontRed">* </i>邮寄地址：</div>      <div class="value">       <input type="text" g-validate="zpyjdz" class="form-control" value="');
                    if (typeof selectedInvoce.registeredAddress !== "undefined" && selectedInvoce.registeredAddress != null) {
                        __.push($.encode(typeof selectedInvoce.registeredAddress === "function" ? selectedInvoce.registeredAddress.call($item) : selectedInvoce.registeredAddress))
                    }
                    __.push('" value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',registeredAddress">        <span class="nError nRed" g-tip-validate="zpyjdz">');
                    if (typeof selectedInvoce.zpyjdz !== "undefined" && selectedInvoce.zpyjdz != null) {
                        __.push(typeof selectedInvoce.zpyjdz === "function" ? selectedInvoce.zpyjdz.call($item) : selectedInvoce.zpyjdz)
                    }
                    __.push("</span>      </div>     </div>    ")
                }
                __.push("    ");
                if (typeof ($page.site == "gomeVirtualCard" && selectedInvoce.invoiceType.code == "0") !== "undefined" && ($page.site == "gomeVirtualCard" && selectedInvoce.invoiceType.code == "0") != null && (typeof ($page.site == "gomeVirtualCard" && selectedInvoce.invoiceType.code == "0") === "function" ? ($page.site == "gomeVirtualCard" && selectedInvoce.invoiceType.code == "0").call($item) : $page.site == "gomeVirtualCard" && selectedInvoce.invoiceType.code == "0")) {
                    __.push('     <div class="clearfix col">      <div class="label"><i class="fontRed">* </i>收货人：</div>      <div class="value">       <input type="text" g-validate="zzshr" class="form-control" value="');
                    if (typeof selectedInvoce.consigneeInfo.name !== "undefined" && selectedInvoce.consigneeInfo.name != null) {
                        __.push($.encode(typeof selectedInvoce.consigneeInfo.name === "function" ? selectedInvoce.consigneeInfo.name.call($item) : selectedInvoce.consigneeInfo.name))
                    }
                    __.push('" value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',consigneeInfo,name">       <span class="nError nRed" g-tip-validate="zzshr">');
                    if (typeof selectedInvoce.zzshr !== "undefined" && selectedInvoce.zzshr != null) {
                        __.push(typeof selectedInvoce.zzshr === "function" ? selectedInvoce.zzshr.call($item) : selectedInvoce.zzshr)
                    }
                    __.push('</span>       </div>     </div>     <div class="clearfix col">      <div class="label"><i class="fontRed">* </i>所在地：</div>      <div class="value"  id="id_address_select" style="width:auto;" value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',consigneeInfo,address">       <span style="border-color:#e5e5e5;" >                   <a  href="javascript:void(0)" name="address" class="add_select"                   g-validate="address"                   value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',consigneeInfo,address,tip"                  value="');
                    if (typeof selectedInvoce.consigneeInfo.address.provinceCode !== "undefined" && selectedInvoce.consigneeInfo.address.provinceCode != null) {
                        __.push($.encode(typeof selectedInvoce.consigneeInfo.address.provinceCode === "function" ? selectedInvoce.consigneeInfo.address.provinceCode.call($item) : selectedInvoce.consigneeInfo.address.provinceCode))
                    }
                    __.push("");
                    if (typeof selectedInvoce.consigneeInfo.address.cityCode !== "undefined" && selectedInvoce.consigneeInfo.address.cityCode != null) {
                        __.push($.encode(typeof selectedInvoce.consigneeInfo.address.cityCode === "function" ? selectedInvoce.consigneeInfo.address.cityCode.call($item) : selectedInvoce.consigneeInfo.address.cityCode))
                    }
                    __.push("");
                    if (typeof selectedInvoce.consigneeInfo.address.countyCode !== "undefined" && selectedInvoce.consigneeInfo.address.countyCode != null) {
                        __.push($.encode(typeof selectedInvoce.consigneeInfo.address.countyCode === "function" ? selectedInvoce.consigneeInfo.address.countyCode.call($item) : selectedInvoce.consigneeInfo.address.countyCode))
                    }
                    __.push("");
                    if (typeof selectedInvoce.consigneeInfo.address.townCode !== "undefined" && selectedInvoce.consigneeInfo.address.townCode != null) {
                        __.push($.encode(typeof selectedInvoce.consigneeInfo.address.townCode === "function" ? selectedInvoce.consigneeInfo.address.townCode.call($item) : selectedInvoce.consigneeInfo.address.townCode))
                    }
                    __.push('"                  >                   ');
                    if (typeof selectedInvoce.consigneeInfo.address.provinceName !== "undefined" && selectedInvoce.consigneeInfo.address.provinceName != null && (typeof selectedInvoce.consigneeInfo.address.provinceName === "function" ? selectedInvoce.consigneeInfo.address.provinceName.call($item) : selectedInvoce.consigneeInfo.address.provinceName)) {
                        __.push("                        <span show-label>");
                        if (typeof selectedInvoce.consigneeInfo.address.provinceName !== "undefined" && selectedInvoce.consigneeInfo.address.provinceName != null) {
                            __.push($.encode(typeof selectedInvoce.consigneeInfo.address.provinceName === "function" ? selectedInvoce.consigneeInfo.address.provinceName.call($item) : selectedInvoce.consigneeInfo.address.provinceName))
                        }
                        __.push("");
                        if (typeof selectedInvoce.consigneeInfo.address.cityName !== "undefined" && selectedInvoce.consigneeInfo.address.cityName != null) {
                            __.push($.encode(typeof selectedInvoce.consigneeInfo.address.cityName === "function" ? selectedInvoce.consigneeInfo.address.cityName.call($item) : selectedInvoce.consigneeInfo.address.cityName))
                        }
                        __.push("");
                        if (typeof selectedInvoce.consigneeInfo.address.countyName !== "undefined" && selectedInvoce.consigneeInfo.address.countyName != null) {
                            __.push($.encode(typeof selectedInvoce.consigneeInfo.address.countyName === "function" ? selectedInvoce.consigneeInfo.address.countyName.call($item) : selectedInvoce.consigneeInfo.address.countyName))
                        }
                        __.push("");
                        if (typeof selectedInvoce.consigneeInfo.address.townName !== "undefined" && selectedInvoce.consigneeInfo.address.townName != null) {
                            __.push($.encode(typeof selectedInvoce.consigneeInfo.address.townName === "function" ? selectedInvoce.consigneeInfo.address.townName.call($item) : selectedInvoce.consigneeInfo.address.townName))
                        }
                        __.push("</span>                        ")
                    } else if (true && true) {
                        __.push('                        <span show-label class="fl">请选择</span>                        ')
                    }
                    __.push('                        <i class="c-i select_arrowup ml10 mt10"></i>                       </a>                   </span>                   <span class="nError nRed" g-tip-validate="address">');
                    if (typeof selectedInvoce.consigneeInfo.address.address !== "undefined" && selectedInvoce.consigneeInfo.address.address != null) {
                        __.push(typeof selectedInvoce.consigneeInfo.address.address === "function" ? selectedInvoce.consigneeInfo.address.address.call($item) : selectedInvoce.consigneeInfo.address.address)
                    }
                    __.push('</span>            <div class="pr add_out hide">                    <em class="pabs c-i arrowup add_up2"></em>              <i class="pabs c-i closebtn add_close" g-area-close></i>                     <div class="gCity"></div>            </div>       <!-- <input type="text" g-validate="zzszd" class="form-control" value="" value-path="">       <span class="nError nRed" g-tip-validate="zzshr">');
                    if (typeof selectedInvoce.zzshr !== "undefined" && selectedInvoce.zzshr != null) {
                        __.push(typeof selectedInvoce.zzshr === "function" ? selectedInvoce.zzshr.call($item) : selectedInvoce.zzshr)
                    }
                    __.push('</span>  -->      </div>           </div>     <div class="clearfix col">      <div class="label"><i class="fontRed">* </i>详细地址：</div>      <div class="value">       <input type="text" g-validate="zzxxdz" class="form-control" name="detailedAddress" value="');
                    if (typeof selectedInvoce.consigneeInfo.address.detailedAddress !== "undefined" && selectedInvoce.consigneeInfo.address.detailedAddress != null) {
                        __.push($.encode(typeof selectedInvoce.consigneeInfo.address.detailedAddress === "function" ? selectedInvoce.consigneeInfo.address.detailedAddress.call($item) : selectedInvoce.consigneeInfo.address.detailedAddress))
                    }
                    __.push('" value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',consigneeInfo,address,detailedAddress">        <span class="nError nRed" g-tip-validate="zzxxdz">');
                    if (typeof selectedInvoce.zzxxdz !== "undefined" && selectedInvoce.zzxxdz != null) {
                        __.push(typeof selectedInvoce.zzxxdz === "function" ? selectedInvoce.zzxxdz.call($item) : selectedInvoce.zzxxdz)
                    }
                    __.push('</span>      </div>     </div>     <div class="clearfix col">      <div class="label"><i class="fontRed">* </i>手机号码：</div>      <div class="value col2fl">       <input        type="text"       ');
                    if (typeof selectedInvoce.consigneeInfo.mobileNumber !== "undefined" && selectedInvoce.consigneeInfo.mobileNumber != null && (typeof selectedInvoce.consigneeInfo.mobileNumber === "function" ? selectedInvoce.consigneeInfo.mobileNumber.call($item) : selectedInvoce.consigneeInfo.mobileNumber)) {
                        __.push('       no-modify="y"        ')
                    }
                    __.push('       g-validate="zzsjhm"        class="form-control fl"        value="');
                    if (typeof selectedInvoce.consigneeInfo.mobileNumber !== "undefined" && selectedInvoce.consigneeInfo.mobileNumber != null) {
                        __.push($.encode(typeof selectedInvoce.consigneeInfo.mobileNumber === "function" ? selectedInvoce.consigneeInfo.mobileNumber.call($item) : selectedInvoce.consigneeInfo.mobileNumber))
                    }
                    __.push('"        value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',consigneeInfo,mobileNumber"        style="width:208px">        <p class="lh30 ml5 fl"><span class="nLowLeight">或</span></p>      </div>      <div class="col2fl lh30 ml5">固定电话：</div>      <div class="value col2fl">       <input type="text" g-validate="zzgddh" class="form-control fl" value="');
                    if (typeof selectedInvoce.consigneeInfo.phoneNumber !== "undefined" && selectedInvoce.consigneeInfo.phoneNumber != null) {
                        __.push($.encode(typeof selectedInvoce.consigneeInfo.phoneNumber === "function" ? selectedInvoce.consigneeInfo.phoneNumber.call($item) : selectedInvoce.consigneeInfo.phoneNumber))
                    }
                    __.push('" value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',consigneeInfo,phoneNumber" style="width:208px">       </div>      <div class="clearfix"></div>      <span class="nError nRed col2flMsg" g-tip-validate="zzsjhm">');
                    if (typeof selectedInvoce.zzsjhm !== "undefined" && selectedInvoce.zzsjhm != null) {
                        __.push(typeof selectedInvoce.zzsjhm === "function" ? selectedInvoce.zzsjhm.call($item) : selectedInvoce.zzsjhm)
                    }
                    __.push('</span>      <span class="nError nRed" g-tip-validate="zzgddh">');
                    if (typeof selectedInvoce.zzgddh !== "undefined" && selectedInvoce.zzgddh != null) {
                        __.push(typeof selectedInvoce.zzgddh === "function" ? selectedInvoce.zzgddh.call($item) : selectedInvoce.zzgddh)
                    }
                    __.push('</span>     </div>     <div class="clearfix col">      <div class="label">邮件：</div>      <div class="value">       <input type="text" g-validate="zzyj" class="form-control" value="');
                    if (typeof selectedInvoce.consigneeInfo.email !== "undefined" && selectedInvoce.consigneeInfo.email != null) {
                        __.push($.encode(typeof selectedInvoce.consigneeInfo.email === "function" ? selectedInvoce.consigneeInfo.email.call($item) : selectedInvoce.consigneeInfo.email))
                    }
                    __.push('" value-path="');
                    if (typeof selectedInvoce.path !== "undefined" && selectedInvoce.path != null) {
                        __.push($.encode(typeof selectedInvoce.path === "function" ? selectedInvoce.path.call($item) : selectedInvoce.path))
                    }
                    __.push(',consigneeInfo,email">        <span class=" ml15 fontGray">方便您实时接收订单状态提醒</span>       <span class="nError nRed" g-tip-validate="zzyj">');
                    if (typeof selectedInvoce.zzyj !== "undefined" && selectedInvoce.zzyj != null) {
                        __.push(typeof selectedInvoce.zzyj === "function" ? selectedInvoce.zzyj.call($item) : selectedInvoce.zzyj)
                    }
                    __.push("</span>       </div>     </div>    ")
                }
                __.push("   ")
            }
            __.push('    <div class="clearfix col">     <div class="label">&nbsp;</div>     <div class="value">      <a href="javascript:void(0)" id="saveInvoice" class="btn btn-primary btn-large" style="margin-top:20px;width: 120px;">       保存发票信息      </a>     </div>    </div>    <div class="clearfix col b-col">     <div class="label b-label b-tip">&nbsp;</div>     <div class="value b-tip">      ');
            if (typeof (pType == "O") !== "undefined" && pType == "O" != null && (typeof (pType == "O") === "function" ? (pType == "O").call($item) : pType == "O")) {
                __.push("      <p>温馨提示：非自营商品发票的开具和邮寄等情况，由店铺商家自行决定。如有任何疑问，可联系商家确认。</p>      ")
            }
            __.push("      ");
            if (typeof ($page.site != "gomeVirtualCard" && $page.site != "gomeEntityCard") !== "undefined" && ($page.site != "gomeVirtualCard" && $page.site != "gomeEntityCard") != null && (typeof ($page.site != "gomeVirtualCard" && $page.site != "gomeEntityCard") === "function" ? ($page.site != "gomeVirtualCard" && $page.site != "gomeEntityCard").call($item) : $page.site != "gomeVirtualCard" && $page.site != "gomeEntityCard")) {
                __.push('      <a href="');
                if (typeof $config.URL.invoiceRule !== "undefined" && $config.URL.invoiceRule != null) {
                    __.push($.encode(typeof $config.URL.invoiceRule === "function" ? $config.URL.invoiceRule.call($item) : $config.URL.invoiceRule))
                }
                __.push('" target="_blank">了解发票制度详情&nbsp;<span class="jt">&gt;</span></a>      ')
            }
            __.push("     </div>    </div>   </div>  </div>")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.listOfItem_items = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="sideright fl">   ');
            if (typeof allItems !== "undefined" && allItems != null) {
                $.each(typeof allItems === "function" ? allItems.call($item) : allItems, function(idx, item) {
                    with (this) {
                        __.push('    <div class="sideright_in">     ');
                        if (typeof (itemPropCode != "NORMAL" && itemPropCode != "NO_USE") !== "undefined" && (itemPropCode != "NORMAL" && itemPropCode != "NO_USE") != null && (typeof (itemPropCode != "NORMAL" && itemPropCode != "NO_USE") === "function" ? (itemPropCode != "NORMAL" && itemPropCode != "NO_USE").call($item) : itemPropCode != "NORMAL" && itemPropCode != "NO_USE")) {
                            __.push('      <div class="mb5">       <span class="pair_buy mr10 pr">');
                            if (typeof $config.labels[itemPropCode] !== "undefined" && $config.labels[itemPropCode] != null) {
                                __.push($.encode(typeof $config.labels[itemPropCode] === "function" ? $config.labels[itemPropCode].call($item) : $config.labels[itemPropCode]))
                            }
                            __.push('<b class="c-i triangle_icon pabs horn"></b></span>       <span class="pair_tip">       ');
                            if (typeof $config.renderNotice !== "undefined" && $config.renderNotice != null) {
                                __.push($config.renderNotice(itemPropCode, item))
                            }
                            __.push("       </span>      </div>     ")
                        }
                        __.push('     <ul class="gmlist clearfix">      ');
                        if (typeof items !== "undefined" && items != null) {
                            $.each(typeof items === "function" ? items.call($item) : items, function($index, $value) {
                                with (this) {
                                    __.push("       ");
                                    if (typeof ($index == items.length - 1 || item.itemPropCode == "NORMAL" || item.itemPropCode == "NO_USE") !== "undefined" && ($index == items.length - 1 || item.itemPropCode == "NORMAL" || item.itemPropCode == "NO_USE") != null && (typeof ($index == items.length - 1 || item.itemPropCode == "NORMAL" || item.itemPropCode == "NO_USE") === "function" ? ($index == items.length - 1 || item.itemPropCode == "NORMAL" || item.itemPropCode == "NO_USE").call($item) : $index == items.length - 1 || item.itemPropCode == "NORMAL" || item.itemPropCode == "NO_USE")) {
                                        __.push('       <li class="gmlist_li_over">       ')
                                    } else if (true && true) {
                                        __.push('       <li class="gmlist_li">       ')
                                    }
                                    __.push('        <div class="pr">         ');
                                    if (typeof (item.itemPropCode != "NORMAL" && item.itemPropCode != "NO_USE") !== "undefined" && (item.itemPropCode != "NORMAL" && item.itemPropCode != "NO_USE") != null && (typeof (item.itemPropCode != "NORMAL" && item.itemPropCode != "NO_USE") === "function" ? (item.itemPropCode != "NORMAL" && item.itemPropCode != "NO_USE").call($item) : item.itemPropCode != "NORMAL" && item.itemPropCode != "NO_USE")) {
                                        __.push('          <b class="o_dot c-i dot pabs"></b>          ');
                                        if (typeof ($index == items.length - 1) !== "undefined" && $index == items.length - 1 != null && (typeof ($index == items.length - 1) === "function" ? ($index == items.length - 1).call($item) : $index == items.length - 1)) {
                                            __.push('          <b class="dot_line pabs"></b>          ')
                                        }
                                        __.push("         ")
                                    }
                                    __.push('        </div>        <div class="clearfix">         <a class="imgLink mr10 fl" target="_blank" href="');
                                    if (typeof itemURL !== "undefined" && itemURL != null) {
                                        __.push($.encode(typeof itemURL === "function" ? itemURL.call($item) : itemURL))
                                    }
                                    __.push('">          <img src="');
                                    if (typeof itemImageURL !== "undefined" && itemImageURL != null) {
                                        __.push($.encode(typeof itemImageURL === "function" ? itemImageURL.call($item) : itemImageURL))
                                    }
                                    __.push('" width="80" height="80">         </a>         <div class="commoditycon fl">          <p >           ');
                                    if (typeof ($value.itemPropCode != "UNKNOWN") !== "undefined" && $value.itemPropCode != "UNKNOWN" != null && (typeof ($value.itemPropCode != "UNKNOWN") === "function" ? ($value.itemPropCode != "UNKNOWN").call($item) : $value.itemPropCode != "UNKNOWN")) {
                                        __.push('           <em class="fontRed mr5">');
                                        if (typeof $config.labels[$value.itemPropCode] !== "undefined" && $config.labels[$value.itemPropCode] != null) {
                                            __.push($.encode(typeof $config.labels[$value.itemPropCode] === "function" ? $config.labels[$value.itemPropCode].call($item) : $config.labels[$value.itemPropCode]))
                                        }
                                        __.push("</em>           ")
                                    }
                                    __.push('           <a href="');
                                    if (typeof itemURL !== "undefined" && itemURL != null) {
                                        __.push($.encode(typeof itemURL === "function" ? itemURL.call($item) : itemURL))
                                    }
                                    __.push('" class="p-name" target="_blank" title="');
                                    if (typeof itemName !== "undefined" && itemName != null) {
                                        __.push($.encode(typeof itemName === "function" ? itemName.call($item) : itemName))
                                    }
                                    __.push('">           ');
                                    if (typeof ($page.site == "haiwaigou") !== "undefined" && $page.site == "haiwaigou" != null && (typeof ($page.site == "haiwaigou") === "function" ? ($page.site == "haiwaigou").call($item) : $page.site == "haiwaigou")) {
                                        __.push('           <b class="c-i hwg"></b>           ')
                                    }
                                    __.push("            ");
                                    if (typeof $config.limitStr !== "undefined" && $config.limitStr != null) {
                                        __.push($.encode($config.limitStr(itemName, 31)))
                                    }
                                    __.push("           </a>          </p>          <!--节能补贴-->          ");
                                    if (typeof ($page.site == "allowance") !== "undefined" && $page.site == "allowance" != null && (typeof ($page.site == "allowance") === "function" ? ($page.site == "allowance").call($item) : $page.site == "allowance")) {
                                        __.push('          <p class="p-ins">           <span class="fontRed mr10">[节能]</span>           <pan class="fontGray">补贴优惠率');
                                        if (typeof allowanceRatio !== "undefined" && allowanceRatio != null) {
                                            __.push($.encode(typeof allowanceRatio === "function" ? allowanceRatio.call($item) : allowanceRatio))
                                        }
                                        __.push("%</pan>          </p>          ")
                                    }
                                    __.push("          ");
                                    if (typeof ($page.site != "warranty") !== "undefined" && $page.site != "warranty" != null && (typeof ($page.site != "warranty") === "function" ? ($page.site != "warranty").call($item) : $page.site != "warranty")) {
                                        __.push('           <p class="p-ins">            <span class="fontRed mr10">¥');
                                        if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                                            __.push($.encode($config.formatAmount(salePrice)))
                                        }
                                        __.push(' </span>            <span class="fontGray mr20 ml5"> x ');
                                        if (typeof quantity !== "undefined" && quantity != null) {
                                            __.push($.encode(typeof quantity === "function" ? quantity.call($item) : quantity))
                                        }
                                        __.push(' </span>            <span class="fontGray mr10">');
                                        if (typeof $config.labels[$value.inventoryState] !== "undefined" && $config.labels[$value.inventoryState] != null) {
                                            __.push(typeof $config.labels[$value.inventoryState] === "function" ? $config.labels[$value.inventoryState].call($item) : $config.labels[$value.inventoryState])
                                        }
                                        __.push("</span>            ");
                                        if (typeof $value.onTheRoad !== "undefined" && $value.onTheRoad != null && (typeof $value.onTheRoad === "function" ? $value.onTheRoad.call($item) : $value.onTheRoad)) {
                                            __.push('            <span class="font118850 mr10">在途</span>            ')
                                        }
                                        __.push("           </p>           ");
                                        if (typeof ($page.site == "haiwaigou") !== "undefined" && $page.site == "haiwaigou" != null && (typeof ($page.site == "haiwaigou") === "function" ? ($page.site == "haiwaigou").call($item) : $page.site == "haiwaigou")) {
                                            __.push('            <p style="line-height: 23px;    color: #333333; ">税费（含商品及运费税费）： <span>¥');
                                            if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                                                __.push($.encode($config.formatAmount(taxAmount)))
                                            }
                                            __.push("</span>             </p>            ")
                                        }
                                        __.push('           <p class="clearfix fuwu">            ');
                                        if (typeof (servers.myf == "Y") !== "undefined" && servers.myf == "Y" != null && (typeof (servers.myf == "Y") === "function" ? (servers.myf == "Y").call($item) : servers.myf == "Y")) {
                                            __.push('            <span class="c-i freight mr10 fl"></span>            ')
                                        }
                                        __.push("            ");
                                        if (typeof (servers.i7 == "Y") !== "undefined" && servers.i7 == "Y" != null && (typeof (servers.i7 == "Y") === "function" ? (servers.i7 == "Y").call($item) : servers.i7 == "Y")) {
                                            __.push('            <span class="c-i seven mr10 fl"></span>             <span class="fl lh16" style="color:rgb(68, 156, 87);">支持7天无理由退货</span>            ')
                                        } else if (typeof (servers.i7 == "N") !== "undefined" && servers.i7 == "N" != null && (typeof (servers.i7 == "N") === "function" ? (servers.i7 == "N").call($item) : servers.i7 == "N")) {
                                            __.push('            <span class="c-i seven_no mr10 fl"> </span>            <span class=" fl lh16"            style="color:rgb(68, 156, 87);">不支持7天无理由退货</span>            ')
                                        }
                                        __.push("           </p>              ")
                                    }
                                    __.push("          ");
                                    if (typeof (racktype != "UNKNOWN") !== "undefined" && racktype != "UNKNOWN" != null && (typeof (racktype != "UNKNOWN") === "function" ? (racktype != "UNKNOWN").call($item) : racktype != "UNKNOWN")) {
                                        __.push('          <div class="applace clearfix" g-pipe>           <span class="fl">电视挂件安装：</span>           <div            class="fl g-select mr10"           g-click="toggle [g-body],toggleClass arrowdown [g-icon],toggleClass arrowup2 [g-icon]">            <a href="javascript:void(0)" class="block" style="width:50px" click-document-pre>             <i class="c-i select_arrowup"></i><!--兼容IE7浏览器 i必须写前面-->             ');
                                        if (typeof (racktype == "Y") !== "undefined" && racktype == "Y" != null && (typeof (racktype == "Y") === "function" ? (racktype == "Y").call($item) : racktype == "Y")) {
                                            __.push("             安装             ")
                                        } else if (true && true) {
                                            __.push("             不安装             ")
                                        }
                                        __.push('            </a>            <ul  g-body class="hide" click-document-hide>             <li g-click="gjaz ');
                                        if (typeof itemId !== "undefined" && itemId != null) {
                                            __.push($.encode(typeof itemId === "function" ? itemId.call($item) : itemId))
                                        }
                                        __.push("_Y allItems.");
                                        if (typeof idx !== "undefined" && idx != null) {
                                            __.push($.encode(typeof idx === "function" ? idx.call($item) : idx))
                                        }
                                        __.push(".items.");
                                        if (typeof $index !== "undefined" && $index != null) {
                                            __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                        }
                                        __.push('.racktype Y">安装</li>             <li g-click="gjaz ');
                                        if (typeof itemId !== "undefined" && itemId != null) {
                                            __.push($.encode(typeof itemId === "function" ? itemId.call($item) : itemId))
                                        }
                                        __.push("_N allItems.");
                                        if (typeof idx !== "undefined" && idx != null) {
                                            __.push($.encode(typeof idx === "function" ? idx.call($item) : idx))
                                        }
                                        __.push(".items.");
                                        if (typeof $index !== "undefined" && $index != null) {
                                            __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                        }
                                        __.push('.racktype N">不安装</li>            </ul>           </div>           <span class="fontGray">安装方式及价格以客服确认为准</span>           <a  class="fontBlue" target="_blank" href="');
                                        if (typeof $config.URL.homeinstallation !== "undefined" && $config.URL.homeinstallation != null) {
                                            __.push($.encode(typeof $config.URL.homeinstallation === "function" ? $config.URL.homeinstallation.call($item) : $config.URL.homeinstallation))
                                        }
                                        __.push('">安装说明></a>          </div>          ')
                                    }
                                    __.push("         </div>        </div>        <div>         ");
                                    if (typeof warrantyItem !== "undefined" && warrantyItem != null && (typeof warrantyItem === "function" ? warrantyItem.call($item) : warrantyItem)) {
                                        __.push('         <p class="ns clearfix">          ');
                                        if (typeof (warrantyItem.warrantyType == "SPECIAL") !== "undefined" && warrantyItem.warrantyType == "SPECIAL" != null && (typeof (warrantyItem.warrantyType == "SPECIAL") === "function" ? (warrantyItem.warrantyType == "SPECIAL").call($item) : warrantyItem.warrantyType == "SPECIAL")) {
                                            __.push('           <span class="c-i cu mr5 mt4 fl mr10"></span>          ')
                                        } else if (typeof (warrantyItem.warrantyType == "NOT_SPECIAL") !== "undefined" && warrantyItem.warrantyType == "NOT_SPECIAL" != null && (typeof (warrantyItem.warrantyType == "NOT_SPECIAL") === "function" ? (warrantyItem.warrantyType == "NOT_SPECIAL").call($item) : warrantyItem.warrantyType == "NOT_SPECIAL")) {
                                            __.push('           <span class="c-i extend_icon mr10 mt4 fl"></span>          ')
                                        }
                                        __.push('          <span class="font33 fl mr15">延长保修');
                                        if (typeof warrantyItem.year !== "undefined" && warrantyItem.year != null) {
                                            __.push($.encode(typeof warrantyItem.year === "function" ? warrantyItem.year.call($item) : warrantyItem.year))
                                        }
                                        __.push('年</span>          <span class="fontRed fl mr20">¥');
                                        if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                                            __.push($.encode($config.formatAmount(warrantyItem.price)))
                                        }
                                        __.push('</span>          <span class="fontGray fl">x');
                                        if (typeof warrantyItem.quantity !== "undefined" && warrantyItem.quantity != null) {
                                            __.push($.encode(typeof warrantyItem.quantity === "function" ? warrantyItem.quantity.call($item) : warrantyItem.quantity))
                                        }
                                        __.push('</span>          <!-- <span class="c-i calender ml15 fl"></span> -->         </p>         ')
                                    }
                                    __.push("         ");
                                    if (typeof zps !== "undefined" && zps != null) {
                                        $.each(typeof zps === "function" ? zps.call($item) : zps, function($index, $value) {
                                            with (this) {
                                                __.push('         <p class="p-zp fontGray clearfix">[赠品] ');
                                                if (typeof name !== "undefined" && name != null) {
                                                    __.push($.encode(typeof name === "function" ? name.call($item) : name))
                                                }
                                                __.push(" X ");
                                                if (typeof quantity !== "undefined" && quantity != null) {
                                                    __.push($.encode(typeof quantity === "function" ? quantity.call($item) : quantity))
                                                }
                                                __.push(" </p>         ")
                                            }
                                        })
                                    }
                                    __.push("       </div>       </li>      ")
                                }
                            })
                        }
                        __.push("     </ul>    </div>     ")
                    }
                })
            }
            __.push("  </div>")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.listOfItem_main = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="clearfix">   ');
            if (typeof ($page.site == "gomeVirtualCard") !== "undefined" && $page.site == "gomeVirtualCard" != null && (typeof ($page.site == "gomeVirtualCard") === "function" ? ($page.site == "gomeVirtualCard").call($item) : $page.site == "gomeVirtualCard")) {
                __.push('   <h3 class="title-color font14 fl">商品清单</h3>   ')
            } else if (true && true) {
                __.push('   <h3 class="title-color font14 fl">送货清单</h3>   ')
            }
            __.push("   ");
            if (typeof $config.listOfitemTipVisible !== "undefined" && $config.listOfitemTipVisible != null && $config.listOfitemTipVisible()) {
                __.push('   <p class="fl fontGray tip">大家电配送时部分偏远地区需额外收取远程费     <a href="');
                if (typeof $config.URL.dispatchQuery !== "undefined" && $config.URL.dispatchQuery != null) {
                    __.push($.encode(typeof $config.URL.dispatchQuery === "function" ? $config.URL.dispatchQuery.call($item) : $config.URL.dispatchQuery))
                }
                __.push('" target="query" >     查看详情     <span class="jt">&gt;</span>    </a>   </p>   ')
            }
            __.push("   ");
            if (typeof $config.backCardLink !== "undefined" && $config.backCardLink != null && $config.backCardLink()) {
                __.push('   <a href="javascript:void 0" id="back-cart" class="fr tip cl" style="margin-right:29px;">    返回购物车修改   </a>   ')
            }
            __.push('   <span href="javascript:void 0" class="fr tip pr30 cl pr" hoverup>    <i class="c-i tips fl" style="margin:5px 5px 0px 0px;"></i>    <span class="fl">价格说明</span>    <div class="pabs desc hide box-sd1" hover>     <i class="pabs c-i arrowup"></i>     因可能存在商品更新等不确定因素，具体售价以本结算页为准。如有疑问，请咨询客服。    </div>   </span>  </div>  ');
            if (typeof ($page.site == "gomeVirtualCard") !== "undefined" && $page.site == "gomeVirtualCard" != null && (typeof ($page.site == "gomeVirtualCard") === "function" ? ($page.site == "gomeVirtualCard").call($item) : $page.site == "gomeVirtualCard")) {
                __.push('  <div class="list-box">   <div class="header clearfix">    <div class="col-1">商品</div>    <div class="col-2">单价</div>    <div class="col-3">数量</div>    <div class="col-4">金额</div>   </div>   ');
                if (typeof $data !== "undefined" && $data != null) {
                    $.each(typeof $data === "function" ? $data.call($item) : $data, function($index, $value) {
                        with (this) {
                            __.push('   <div class="body clearfix">    <div class="col-1">     <a href="');
                            if (typeof itemURL !== "undefined" && itemURL != null) {
                                __.push(typeof itemURL === "function" ? itemURL.call($item) : itemURL)
                            }
                            __.push('" target="_blank" class="img">      <img src="');
                            if (typeof itemImageURL !== "undefined" && itemImageURL != null) {
                                __.push(typeof itemImageURL === "function" ? itemImageURL.call($item) : itemImageURL)
                            }
                            __.push('">     </a>     <div class="info">      <div class="title">            <a href="');
                            if (typeof itemURL !== "undefined" && itemURL != null) {
                                __.push(typeof itemURL === "function" ? itemURL.call($item) : itemURL)
                            }
                            __.push('" target="_blank">');
                            if (typeof itemName !== "undefined" && itemName != null) {
                                __.push($.encode(typeof itemName === "function" ? itemName.call($item) : itemName))
                            }
                            __.push('</a>          </div>      <div>       <span class="fontRed" style="margin-right: 20px;">¥');
                            if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                                __.push($.encode($config.formatAmount(salePrice)))
                            }
                            __.push('</span>       <span class="fontGray" style="margin-right: 20px;">x&nbsp;');
                            if (typeof quantity !== "undefined" && quantity != null) {
                                __.push($.encode(typeof quantity === "function" ? quantity.call($item) : quantity))
                            }
                            __.push('</span>       <!-- <span class="fontGray">有货</span> -->      </div>     </div>    </div>    <div class="col-2">¥');
                            if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                                __.push($.encode($config.formatAmount(salePrice)))
                            }
                            __.push('</div>    <div class="col-3">x&nbsp;');
                            if (typeof quantity !== "undefined" && quantity != null) {
                                __.push($.encode(typeof quantity === "function" ? quantity.call($item) : quantity))
                            }
                            __.push('</div>    <div class="col-4">¥');
                            if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                                __.push($.encode($config.formatAmount(totalPrice)))
                            }
                            __.push("</div>   </div>   ")
                        }
                    })
                }
                __.push("  </div>  ")
            } else if (true && true) {
                __.push('  <div class="infoH">   ');
                if (typeof $data !== "undefined" && $data != null) {
                    $.each(typeof $data === "function" ? $data.call($item) : $data, function(idx, shop) {
                        with (this) {
                            __.push('   <!--国美自营购物车list-->   <div class="info-bd clearfix">    <!--购物车list-top-->    <div class="backStyle">     <span class="fr fontRed" style="top:0px;padding-right:29px;">     ');
                            if (typeof $config.shopTip !== "undefined" && $config.shopTip != null) {
                                __.push($config.shopTip(shop))
                            }
                            __.push('     </span>     <span class="hcon">配送信息</span>     ');
                            if (typeof (shop.shopId == "GOME") !== "undefined" && shop.shopId == "GOME" != null && (typeof (shop.shopId == "GOME") === "function" ? (shop.shopId == "GOME").call($item) : shop.shopId == "GOME")) {
                                __.push('     <span class="gomesend">国美自营</span>     ')
                            } else if (true && true) {
                                __.push('     <span class="gomesend">');
                                if (typeof shop.shopName !== "undefined" && shop.shopName != null) {
                                    __.push($.encode(typeof shop.shopName === "function" ? shop.shopName.call($item) : shop.shopName))
                                }
                                __.push("</span>     ")
                            }
                            __.push('    </div>    <!--配送信息,商品清单-->    <div class="dilivery clearfix">     <!--配送信息left-->     <div class="sideleft fl" info-path="');
                            if (typeof idx !== "undefined" && idx != null) {
                                __.push($.encode(typeof idx === "function" ? idx.call($item) : idx))
                            }
                            __.push('">     </div>     <!--配送信息right-->     <div class="sideright fl" list-path="');
                            if (typeof idx !== "undefined" && idx != null) {
                                __.push($.encode(typeof idx === "function" ? idx.call($item) : idx))
                            }
                            __.push('">     </div>    </div>   </div>   ')
                        }
                    })
                }
                __.push("  </div>  ")
            }
            __.push("")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.listOfItem_method = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push("");
            if (typeof shoppinginfo !== "undefined" && shoppinginfo != null) {
                $.each(typeof shoppinginfo === "function" ? shoppinginfo.call($item) : shoppinginfo, function(iidx, info) {
                    with (this) {
                        __.push("   ");
                        if (typeof (iidx !== 0) !== "undefined" && iidx !== 0 != null && (typeof (iidx !== 0) === "function" ? (iidx !== 0).call($item) : iidx !== 0)) {
                            __.push('   <div style="height:30px;"></div>   ')
                        }
                        __.push('   <div class="all_listpay">    <div class="clearfix tittle mb15">     <h4 class="fl mr15 send_way">配送方式</h4>     <div class="goods_dy" map-item>      ');
                        if (typeof visibleCorrespondItems !== "undefined" && visibleCorrespondItems != null && visibleCorrespondItems.call($item, shopId)) {
                            __.push('      <a href="javascript:void(0)" class="fontBlue clearfix" hoverup-1>       <i class="fl c-i tips" style="margin-top:5px; margin-right:4px;"></i>       <span class="fl" >对应商品</span>      </a>      ')
                        }
                        __.push('      <!--对应商品弹层开始-->      <div class="pr zi1000">       <div class="goods_fenlei pabs hide box-sd1" hover-1>        <i class="c-i arrowup pabs tips_arrow"></i>                ');
                        if (typeof (info.items && info.items.length > 4) !== "undefined" && (info.items && info.items.length > 4) != null && (typeof (info.items && info.items.length > 4) === "function" ? (info.items && info.items.length > 4).call($item) : info.items && info.items.length > 4)) {
                            __.push('        <div style="height:15px;"></div>        <div class="fenlei_in" style="height:370px;overflow-y:auto;">        ')
                        } else if (true && true) {
                            __.push('        <div class="fenlei_in">        ')
                        }
                        __.push("        ");
                        if (typeof info.items !== "undefined" && info.items != null) {
                            $.each(typeof info.items === "function" ? info.items.call($item) : info.items, function($index, $value) {
                                with (this) {
                                    __.push('        <div class="clearfix">         <div class="mr10 col-1 fl" >          <img src="');
                                    if (typeof itemImageURL !== "undefined" && itemImageURL != null) {
                                        __.push($.encode(typeof itemImageURL === "function" ? itemImageURL.call($item) : itemImageURL))
                                    }
                                    __.push('" width="80" height="80" alt="">         </div>         <div class="fl col-2" >          <a href="');
                                    if (typeof itemURL !== "undefined" && itemURL != null) {
                                        __.push($.encode(typeof itemURL === "function" ? itemURL.call($item) : itemURL))
                                    }
                                    __.push('" class="p-name" target="_blank" title="');
                                    if (typeof itemName !== "undefined" && itemName != null) {
                                        __.push($.encode(typeof itemName === "function" ? itemName.call($item) : itemName))
                                    }
                                    __.push('">           <p class="p-name">           ');
                                    if (typeof (itemPropCode != "UNKNOWN") !== "undefined" && itemPropCode != "UNKNOWN" != null && (typeof (itemPropCode != "UNKNOWN") === "function" ? (itemPropCode != "UNKNOWN").call($item) : itemPropCode != "UNKNOWN")) {
                                        __.push('           <em class="fontRed mr5">');
                                        if (typeof $config.labels[itemPropCode] !== "undefined" && $config.labels[itemPropCode] != null) {
                                            __.push($.encode(typeof $config.labels[itemPropCode] === "function" ? $config.labels[itemPropCode].call($item) : $config.labels[itemPropCode]))
                                        }
                                        __.push("</em>           ")
                                    }
                                    __.push("           ");
                                    if (typeof $config.limitStr !== "undefined" && $config.limitStr != null) {
                                        __.push($.encode($config.limitStr(itemName, 48)))
                                    }
                                    __.push("           </p>          </a>         </div>        </div>         ");
                                    if (typeof ($index !== info.items.length - 1) !== "undefined" && $index !== info.items.length - 1 != null && (typeof ($index !== info.items.length - 1) === "function" ? ($index !== info.items.length - 1).call($item) : $index !== info.items.length - 1)) {
                                        __.push('         <div style="height:15px;"></div>         ')
                                    }
                                    __.push("        ")
                                }
                            })
                        }
                        __.push('        </div>       </div>      </div>      <!--对应商品弹层结束-->     </div>    </div>   </div>   <!--快递-->   <div class="Express clearfix">    ');
                        if (typeof info.express !== "undefined" && info.express != null) {
                            $.each(typeof info.express === "function" ? info.express.call($item) : info.express, function($index, $value) {
                                with (this) {
                                    __.push('     <div class="dispatfont btn_Square_out mb15">      <div class="h28">       ');
                                    if (typeof $value.selected !== "undefined" && $value.selected != null && (typeof $value.selected === "function" ? $value.selected.call($item) : $value.selected)) {
                                        __.push('       <a href="javascript:void(0)" class="btn btn-check btn-checked mw150 mr10">        <span class="name">');
                                        if (typeof $config.labels[$value.code] !== "undefined" && $config.labels[$value.code] != null) {
                                            __.push($.encode(typeof $config.labels[$value.code] === "function" ? $config.labels[$value.code].call($item) : $config.labels[$value.code]))
                                        }
                                        __.push('</span>        <i class="c-i chose_icon"></i>       </a>        ');
                                        if (typeof $value.shippingFee !== "undefined" && $value.shippingFee != null && (typeof $value.shippingFee === "function" ? $value.shippingFee.call($item) : $value.shippingFee)) {
                                            __.push('        <span class="fontRed">运费:¥');
                                            if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                                                __.push($.encode($config.formatAmount($value.shippingFee)))
                                            }
                                            __.push("</span>        ")
                                        } else if (typeof ($value.shippingFee === 0) !== "undefined" && $value.shippingFee === 0 != null && (typeof ($value.shippingFee === 0) === "function" ? ($value.shippingFee === 0).call($item) : $value.shippingFee === 0)) {
                                            __.push('        <span class="fontRed">免运费</span>        ')
                                        }
                                        __.push("       ")
                                    } else if (true && true) {
                                        __.push('       <a href="javascript:void(0)" class="btn btn-check mw150 mr10"       g-e-path="shoppinginfo,');
                                        if (typeof iidx !== "undefined" && iidx != null) {
                                            __.push($.encode(typeof iidx === "function" ? iidx.call($item) : iidx))
                                        }
                                        __.push(",express,");
                                        if (typeof $index !== "undefined" && $index != null) {
                                            __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                        }
                                        __.push('">       <span class="name">');
                                        if (typeof $config.labels[$value.code] !== "undefined" && $config.labels[$value.code] != null) {
                                            __.push($.encode(typeof $config.labels[$value.code] === "function" ? $config.labels[$value.code].call($item) : $config.labels[$value.code]))
                                        }
                                        __.push("</span>       </a>        ");
                                        if (typeof $value.shippingFee !== "undefined" && $value.shippingFee != null && (typeof $value.shippingFee === "function" ? $value.shippingFee.call($item) : $value.shippingFee)) {
                                            __.push('        <span class="fontGray">运费:¥');
                                            if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                                                __.push($.encode($config.formatAmount($value.shippingFee)))
                                            }
                                            __.push("</span>        ")
                                        } else if (typeof ($value.shippingFee === 0) !== "undefined" && $value.shippingFee === 0 != null && (typeof ($value.shippingFee === 0) === "function" ? ($value.shippingFee === 0).call($item) : $value.shippingFee === 0)) {
                                            __.push('        <span class="fontGray">免运费</span>        ')
                                        }
                                        __.push("       ")
                                    }
                                    __.push("      </div>     </div>    ")
                                }
                            })
                        }
                        __.push("   </div>   ");
                        if (typeof (selectedfn(info.express) && selectedfn(info.express).code == "Gome Picking Up") !== "undefined" && (selectedfn(info.express) && selectedfn(info.express).code == "Gome Picking Up") != null && (typeof (selectedfn(info.express) && selectedfn(info.express).code == "Gome Picking Up") === "function" ? (selectedfn(info.express) && selectedfn(info.express).code == "Gome Picking Up").call($item) : selectedfn(info.express) && selectedfn(info.express).code == "Gome Picking Up")) {
                            __.push('   <div class="mb10">    <span class="strong">自提门店：</span>    <span class="cash mr20 strong">');
                            if (typeof selectedfn(info.express).storeName !== "undefined" && selectedfn(info.express).storeName != null) {
                                __.push($.encode(typeof selectedfn(info.express).storeName === "function" ? selectedfn(info.express).storeName.call($item) : selectedfn(info.express).storeName))
                            }
                            __.push('</span>    <a href="javascript:void(0)" g-picking-up="shoppinginfo,');
                            if (typeof iidx !== "undefined" && iidx != null) {
                                __.push($.encode(typeof iidx === "function" ? iidx.call($item) : iidx))
                            }
                            __.push(',express">修改</a>    <div style="line-height: 15px">     温馨提示：商品到店后，国美在线会发短信提醒您，请您<br/>在收到短信后3个自然日内至门店提货。    </div>   </div>   ')
                        }
                        __.push("   <!--支付方式-->   ");
                        if (typeof payments !== "undefined" && payments != null) {
                            $.each(typeof payments === "function" ? payments.call($item) : payments, function($index, $value) {
                                with (this) {
                                    __.push("   ");
                                    if (typeof selected !== "undefined" && selected != null && (typeof selected === "function" ? selected.call($item) : selected)) {
                                        __.push('   <div class="pay_way_c mb10">    <span>支付方式：</span>    <span class="cash mr20">');
                                        if (typeof $config.labels[$value.code] !== "undefined" && $config.labels[$value.code] != null) {
                                            __.push($.encode(typeof $config.labels[$value.code] === "function" ? $config.labels[$value.code].call($item) : $config.labels[$value.code]))
                                        }
                                        __.push("</span>    ");
                                        if (typeof (payments.length > 1) !== "undefined" && payments.length > 1 != null && (typeof (payments.length > 1) === "function" ? (payments.length > 1).call($item) : payments.length > 1)) {
                                            __.push('    <a href="javascript:void(0)" g-p-path="shoppinginfo,');
                                            if (typeof iidx !== "undefined" && iidx != null) {
                                                __.push($.encode(typeof iidx === "function" ? iidx.call($item) : iidx))
                                            }
                                            __.push(',payments">修改</a>    ')
                                        }
                                        __.push("   </div>   ")
                                    }
                                    __.push("   ")
                                }
                            })
                        }
                        __.push("  ");
                        if (typeof (selectedfn(info.express) && selectedfn(info.express).code != "Gome Picking Up") !== "undefined" && (selectedfn(info.express) && selectedfn(info.express).code != "Gome Picking Up") != null && (typeof (selectedfn(info.express) && selectedfn(info.express).code != "Gome Picking Up") === "function" ? (selectedfn(info.express) && selectedfn(info.express).code != "Gome Picking Up").call($item) : selectedfn(info.express) && selectedfn(info.express).code != "Gome Picking Up")) {
                            __.push('   <!--配送时间-->   <div class="otherTime pr clearfix zi10">    <div class="fl" >配送时间：</div>   ');
                            if (typeof info.times !== "undefined" && info.times != null) {
                                $.each(typeof info.times === "function" ? info.times.call($item) : info.times, function(tidx, ptime) {
                                    with (this) {
                                        __.push('    <div class="chooseTime pr" style="margin-left:60px">     ');
                                        if (typeof (ptime.code == "DAY") !== "undefined" && ptime.code == "DAY" != null && (typeof (ptime.code == "DAY") === "function" ? (ptime.code == "DAY").call($item) : ptime.code == "DAY")) {
                                            __.push('     <div class="chooseDay">      ');
                                            if (typeof ptime.items !== "undefined" && ptime.items != null) {
                                                $.each(typeof ptime.items === "function" ? ptime.items.call($item) : ptime.items, function($index, $value) {
                                                    with (this) {
                                                        __.push("       ");
                                                        if (typeof selected !== "undefined" && selected != null && (typeof selected === "function" ? selected.call($item) : selected)) {
                                                            __.push('       <label class="lb_check show" >       <span class="c-i radio_chose mr5 mt4 fl"></span>       <input type="radio" class="btn_radio">       ');
                                                            if (typeof $config.labels[code] !== "undefined" && $config.labels[code] != null) {
                                                                __.push($.encode(typeof $config.labels[code] === "function" ? $config.labels[code].call($item) : $config.labels[code]))
                                                            }
                                                            __.push("       </label>       ")
                                                        } else if (true && true) {
                                                            __.push('       <label class="lb_check show"         g-t-path="shoppinginfo,');
                                                            if (typeof iidx !== "undefined" && iidx != null) {
                                                                __.push($.encode(typeof iidx === "function" ? iidx.call($item) : iidx))
                                                            }
                                                            __.push(",times,");
                                                            if (typeof tidx !== "undefined" && tidx != null) {
                                                                __.push($.encode(typeof tidx === "function" ? tidx.call($item) : tidx))
                                                            }
                                                            __.push(",items,");
                                                            if (typeof $index !== "undefined" && $index != null) {
                                                                __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                                            }
                                                            __.push('">        <span class="c-i radio mr5 mt4 fl"></span>        ');
                                                            if (typeof $config.labels[code] !== "undefined" && $config.labels[code] != null) {
                                                                __.push($.encode(typeof $config.labels[code] === "function" ? $config.labels[code].call($item) : $config.labels[code]))
                                                            }
                                                            __.push("       </label>       ")
                                                        }
                                                        __.push("      ")
                                                    }
                                                })
                                            }
                                            __.push("     </div>     ")
                                        }
                                        __.push("     ");
                                        if (typeof (ptime.code == "JSD") !== "undefined" && ptime.code == "JSD" != null && (typeof (ptime.code == "JSD") === "function" ? (ptime.code == "JSD").call($item) : ptime.code == "JSD")) {
                                            __.push('     <div class="chooseDay">       ');
                                            if (typeof ptime.selected !== "undefined" && ptime.selected != null && (typeof ptime.selected === "function" ? ptime.selected.call($item) : ptime.selected)) {
                                                __.push('      <label for="" class="lb_check checktime mb5">       <span class="c-i radio_chose fl mr5 mt5"></span>       ')
                                            } else if (true && true) {
                                                __.push('      <label  g-t-path="shoppinginfo,');
                                                if (typeof iidx !== "undefined" && iidx != null) {
                                                    __.push($.encode(typeof iidx === "function" ? iidx.call($item) : iidx))
                                                }
                                                __.push(",times,");
                                                if (typeof tidx !== "undefined" && tidx != null) {
                                                    __.push($.encode(typeof tidx === "function" ? tidx.call($item) : tidx))
                                                }
                                                __.push('" class="lb_check checktime mb5">       <span class="c-i radio fl mr5 mt5"></span>       ')
                                            }
                                            __.push("       ");
                                            if (typeof (ptime.days == 0) !== "undefined" && ptime.days == 0 != null && (typeof (ptime.days == 0) === "function" ? (ptime.days == 0).call($item) : ptime.days == 0)) {
                                                __.push("       预计将在今天");
                                                if (typeof ptime.hours !== "undefined" && ptime.hours != null) {
                                                    __.push($.encode(typeof ptime.hours === "function" ? ptime.hours.call($item) : ptime.hours))
                                                }
                                                __.push("前送达       ")
                                            } else if (typeof (ptime.days == 1) !== "undefined" && ptime.days == 1 != null && (typeof (ptime.days == 1) === "function" ? (ptime.days == 1).call($item) : ptime.days == 1)) {
                                                __.push("       预计将在明天");
                                                if (typeof ptime.hours !== "undefined" && ptime.hours != null) {
                                                    __.push($.encode(typeof ptime.hours === "function" ? ptime.hours.call($item) : ptime.hours))
                                                }
                                                __.push("前送达       ")
                                            }
                                            __.push("      </label>     </div>     ")
                                        }
                                        __.push("     ");
                                        if (typeof (ptime.code == "XSD") !== "undefined" && ptime.code == "XSD" != null && (typeof (ptime.code == "XSD") === "function" ? (ptime.code == "XSD").call($item) : ptime.code == "XSD")) {
                                            __.push('     <div class="chooseDay" >       ');
                                            if (typeof xsdSelectedTime !== "undefined" && xsdSelectedTime != null && xsdSelectedTime.call($item, ptime)) {
                                                __.push('       <label for="" class="lb_check checktime fl wd105 ">        <span class="c-i radio_chose fl mr5 mt5"></span>        <input type="radio" class="btn_radio">       ')
                                            } else if (true && true) {
                                                __.push('       <label g-t-path="shoppinginfo,');
                                                if (typeof iidx !== "undefined" && iidx != null) {
                                                    __.push($.encode(typeof iidx === "function" ? iidx.call($item) : iidx))
                                                }
                                                __.push(",times,");
                                                if (typeof tidx !== "undefined" && tidx != null) {
                                                    __.push($.encode(typeof tidx === "function" ? tidx.call($item) : tidx))
                                                }
                                                __.push('" class="lb_check checktime fl wd105 ">        <span class="c-i radio fl mr5 mt5"></span>       ')
                                            }
                                            __.push('       指定送货时间      </label>      <div class="fl" hoverup >       <div class="calendar_out pr fl calendar_z" >        <input type="text" class="calendar_text c_wd40 c_bd "          value="');
                                            if (typeof xsdSelectedTime !== "undefined" && xsdSelectedTime != null) {
                                                __.push($.encode(xsdSelectedTime.call($item, ptime)))
                                            }
                                            __.push('"         readonly="readonly">        <i class="c-i calender_icon c_icon pabs"></i>       </div>       <div class="pabs deli_time box-sd1 hide" hover style="padding:15px;">        <div class="header clearfix">         ');
                                            if (typeof ptime.head !== "undefined" && ptime.head != null) {
                                                $.each(typeof ptime.head === "function" ? ptime.head.call($item) : ptime.head, function(idx, timeItem) {
                                                    with (this) {
                                                        __.push("          ");
                                                        if (typeof (idx == 0) !== "undefined" && idx == 0 != null && (typeof (idx == 0) === "function" ? (idx == 0).call($item) : idx == 0)) {
                                                            __.push('           <div class="col-1" style="width:124px;">            时间段           </div>          ')
                                                        } else if (true && true) {
                                                            __.push('           <div class="col-1" style="width:86px;padding-bottom:5px;">            <div class="col-1-1">             ');
                                                            if (typeof timeItem.md !== "undefined" && timeItem.md != null) {
                                                                __.push($.encode(typeof timeItem.md === "function" ? timeItem.md.call($item) : timeItem.md))
                                                            }
                                                            __.push('            </div>            <div class="col-1-2">             ');
                                                            if (typeof timeItem.label !== "undefined" && timeItem.label != null) {
                                                                __.push($.encode(typeof timeItem.label === "function" ? timeItem.label.call($item) : timeItem.label))
                                                            }
                                                            __.push("            </div>           </div>          ")
                                                        }
                                                        __.push("         ")
                                                    }
                                                })
                                            }
                                            __.push("        </div>        ");
                                            if (typeof ptime.body !== "undefined" && ptime.body != null) {
                                                $.each(typeof ptime.body === "function" ? ptime.body.call($item) : ptime.body, function(bidx, bodyitem) {
                                                    with (this) {
                                                        __.push('         <div class="body clearfix">         ');
                                                        if (typeof bodyitem !== "undefined" && bodyitem != null) {
                                                            $.each(typeof bodyitem === "function" ? bodyitem.call($item) : bodyitem, function(biidx, timeitem) {
                                                                with (this) {
                                                                    __.push("          ");
                                                                    if (typeof (biidx == 0) !== "undefined" && biidx == 0 != null && (typeof (biidx == 0) === "function" ? (biidx == 0).call($item) : biidx == 0)) {
                                                                        __.push('           <div class="col-1 first" style="width:124px;">            ');
                                                                        if (typeof $config.formathhmm !== "undefined" && $config.formathhmm != null) {
                                                                            __.push($.encode($config.formathhmm(timeitem.startTime)))
                                                                        }
                                                                        __.push("-");
                                                                        if (typeof $config.formathhmm !== "undefined" && $config.formathhmm != null) {
                                                                            __.push($.encode($config.formathhmm(timeitem.endTime)))
                                                                        }
                                                                        __.push("           </div>          ")
                                                                    } else if (typeof timeitem.available !== "undefined" && timeitem.available != null && (typeof timeitem.available === "function" ? timeitem.available.call($item) : timeitem.available)) {
                                                                        __.push("           ");
                                                                        if (typeof timeitem.selected !== "undefined" && timeitem.selected != null && (typeof timeitem.selected === "function" ? timeitem.selected.call($item) : timeitem.selected)) {
                                                                            __.push('           <div class="col-1 hover" style="width:86px;">            <div class="item">已选</div>           </div>           ')
                                                                        } else if (true && true) {
                                                                            __.push('           <div class="col-1"           style="width:86px;"           g-t-path="shoppinginfo,');
                                                                            if (typeof iidx !== "undefined" && iidx != null) {
                                                                                __.push($.encode(typeof iidx === "function" ? iidx.call($item) : iidx))
                                                                            }
                                                                            __.push(",times,");
                                                                            if (typeof tidx !== "undefined" && tidx != null) {
                                                                                __.push($.encode(typeof tidx === "function" ? tidx.call($item) : tidx))
                                                                            }
                                                                            __.push(",body,");
                                                                            if (typeof bidx !== "undefined" && bidx != null) {
                                                                                __.push($.encode(typeof bidx === "function" ? bidx.call($item) : bidx))
                                                                            }
                                                                            __.push(",");
                                                                            if (typeof biidx !== "undefined" && biidx != null) {
                                                                                __.push($.encode(typeof biidx === "function" ? biidx.call($item) : biidx))
                                                                            }
                                                                            __.push('">            <div class="item">可选</div>           </div>           ')
                                                                        }
                                                                        __.push("          ")
                                                                    } else if (true && true) {
                                                                        __.push('           <div class="col-1" style="width:86px;">&nbsp;</div>          ')
                                                                    }
                                                                    __.push("         ")
                                                                }
                                                            })
                                                        }
                                                        __.push("         </div>        ")
                                                    }
                                                })
                                            }
                                            __.push("       </div>      </div>     </div>     ")
                                        }
                                        __.push("    </div>   ")
                                    }
                                })
                            }
                            __.push("   </div>  ")
                        }
                        __.push("  ")
                    }
                })
            }
            __.push("  ");
            if (typeof $config.VBLE.beizhu !== "undefined" && $config.VBLE.beizhu != null && $config.VBLE.beizhu()) {
                __.push('  <p class="valignp mt40" g-pipe>   <span class="remarks fl">备注:</span>   <label class="rmarkLabel fl">    <input type="text" class="form-control" style="width:250px;" value="');
                if (typeof comments !== "undefined" && comments != null) {
                    __.push($.encode(typeof comments === "function" ? comments.call($item) : comments))
                }
                __.push('" g-keyup="changeComment [g-keyup] [g-tip]" placeholder="最多输入30个字">   </label>   <span class="nWarings fl hide fontRed" g-tip>&nbsp;&nbsp;最多输入30个字 </span>  </p>  ')
            }
            __.push("  ");
            if (typeof shopPhone !== "undefined" && shopPhone != null && (typeof shopPhone === "function" ? shopPhone.call($item) : shopPhone)) {
                __.push('  <p class="dispatfont">   <span class="fontGray mr5">如有疑问请联系</span>   ');
                if (typeof shopPhone !== "undefined" && shopPhone != null) {
                    __.push($.encode(typeof shopPhone === "function" ? shopPhone.call($item) : shopPhone))
                }
                __.push("   </p>  ")
            }
            __.push("")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.listOfItem_method_payment = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div>选择支付方式</div>  <div class="clearfix">   ');
            if (typeof $data !== "undefined" && $data != null) {
                $.each(typeof $data === "function" ? $data.call($item) : $data, function($index, $value) {
                    with (this) {
                        __.push("    ");
                        if (typeof selected !== "undefined" && selected != null && (typeof selected === "function" ? selected.call($item) : selected)) {
                            __.push('    <label class="lb_check show fl pr50" idx="');
                            if (typeof $index !== "undefined" && $index != null) {
                                __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                            }
                            __.push('">            <span class="c-i radio_chose mr5 mt4 fl"></span>            <input type="radio" class="btn_radio">            ');
                            if (typeof $config.labels[$value.code] !== "undefined" && $config.labels[$value.code] != null) {
                                __.push($.encode(typeof $config.labels[$value.code] === "function" ? $config.labels[$value.code].call($item) : $config.labels[$value.code]))
                            }
                            __.push("          </label>    ")
                        } else if (true && true) {
                            __.push('    <label class="lb_check show fl pr50" idx="');
                            if (typeof $index !== "undefined" && $index != null) {
                                __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                            }
                            __.push('">            <span class="c-i radio mr5 mt4 fl"></span>            <input type="radio" class="btn_radio">            ');
                            if (typeof $config.labels[$value.code] !== "undefined" && $config.labels[$value.code] != null) {
                                __.push($.encode(typeof $config.labels[$value.code] === "function" ? $config.labels[$value.code].call($item) : $config.labels[$value.code]))
                            }
                            __.push("       </label>    ")
                        }
                        __.push("   ")
                    }
                })
            }
            __.push('  </div>  <div style="height:20px;"></div>  <div class="btns">   <a href="javascript:;" class="btn btn-primary mr10" g-list-save>保存付款方式</a>   <a href="javascript:;" class="btn btn-default" g-list-canel>取消</a>  </div>')
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.listOfItem_pickingUp = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="store_payment bgwhite pr">   <em class="c-i closebtn-new pabs" g-close style="top:15px;right:20px;cursor: pointer;"></em>   <div class="select_area clearfix mb10">    <div class="w150 fl text-right" style="line-height:32px;"><b class="fontRed pdl_r5">*</b> 选择区域：</div>    <ul class="fl clearfix" style="line-height:32px;">     <li class="fl mr10">');
            if (typeof pickingUP.stateName !== "undefined" && pickingUP.stateName != null) {
                __.push($.encode(typeof pickingUP.stateName === "function" ? pickingUP.stateName.call($item) : pickingUP.stateName))
            }
            __.push('</li>     <li class="fl mr10">      ');
            if (typeof pickingUP.cityName !== "undefined" && pickingUP.cityName != null) {
                __.push($.encode(typeof pickingUP.cityName === "function" ? pickingUP.cityName.call($item) : pickingUP.cityName))
            }
            __.push('     </li>     <!-- <li class="fl ck mr10"> -->     <li class="fl">      <div class="g-select" g-select>       <a href="javascript:void(0)" class="block" style="width:115px;">        <i class="c-i select_arrowup"></i>        ');
            if (typeof selectedArea !== "undefined" && selectedArea != null && selectedArea.call($item, list)) {
                __.push("        <san g-title>");
                if (typeof selectedArea(list).countyName !== "undefined" && selectedArea(list).countyName != null) {
                    __.push($.encode(typeof selectedArea(list).countyName === "function" ? selectedArea(list).countyName.call($item) : selectedArea(list).countyName))
                }
                __.push("</san>        ")
            } else if (true && true) {
                __.push("        <san g-title>请选择</san>        ")
            }
            __.push('       </a>       <ul class="hide" g-select-body>        ');
            if (typeof list !== "undefined" && list != null) {
                $.each(typeof list === "function" ? list.call($item) : list, function($index, $value) {
                    with (this) {
                        __.push('        <li s-idx="');
                        if (typeof $index !== "undefined" && $index != null) {
                            __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                        }
                        __.push('">');
                        if (typeof countyName !== "undefined" && countyName != null) {
                            __.push($.encode(typeof countyName === "function" ? countyName.call($item) : countyName))
                        }
                        __.push("</li>        ")
                    }
                })
            }
            __.push('       </ul>      </div>       </li>    </ul>    </div>   <div style="clear:both;"></div>    <div class="select_store clearfix" >    <div class="w150 fl text-right"><b class="fontRed pdl_r5">*</b>选择自提门店：</div>    <div class="fl h185" style="width:610px;overflow:auto;background:#f8f8f8;padding:18px 0px 0px 22px;" id="store-content">         </div>    </div>   <div style="clear:both;"></div>   <div class=" mt20 clearfix">    <a href="javascript:void(0)" id="pks-saveStore" class="btn btn-primary btn-w83 mr50" style="margin-left:149px;">保存自提门店</a>    <a href="javascript:void(0)" g-close class="btn btn-default btn-w83">取消</a>   </div>    </div>')
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.listOfItem_pickingUp_stores = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push("");
            if (typeof gomeStoreShippings !== "undefined" && gomeStoreShippings != null) {
                $.each(typeof gomeStoreShippings === "function" ? gomeStoreShippings.call($item) : gomeStoreShippings, function($index, $value) {
                    with (this) {
                        __.push("   ");
                        if (typeof isSelectStore !== "undefined" && isSelectStore != null && isSelectStore.call($item, $value)) {
                            __.push('     <div class="btn_Square_out">       <a href="javascript:void(0)" class="btn btn-check btn-checked" title="');
                            if (typeof name !== "undefined" && name != null) {
                                __.push($.encode(typeof name === "function" ? name.call($item) : name))
                            }
                            __.push('">       <span class="name addr_over w135">');
                            if (typeof name !== "undefined" && name != null) {
                                __.push($.encode(typeof name === "function" ? name.call($item) : name))
                            }
                            __.push('</span><i class="c-i chose_icon"></i>      </a>     <span>');
                            if (typeof cityName !== "undefined" && cityName != null) {
                                __.push($.encode(typeof cityName === "function" ? cityName.call($item) : cityName))
                            }
                            __.push("</span>     <span>");
                            if (typeof countyName !== "undefined" && countyName != null) {
                                __.push($.encode(typeof countyName === "function" ? countyName.call($item) : countyName))
                            }
                            __.push(' </span>     <span class="addr_over"      style="width:175px;vertical-align: middle;  line-height: 15px;  height: 16px;"     title="');
                            if (typeof address !== "undefined" && address != null) {
                                __.push($.encode(typeof address === "function" ? address.call($item) : address))
                            }
                            __.push('">');
                            if (typeof address !== "undefined" && address != null) {
                                __.push($.encode(typeof address === "function" ? address.call($item) : address))
                            }
                            __.push("</span>     <span>");
                            if (typeof storePhone !== "undefined" && storePhone != null) {
                                __.push($.encode(typeof storePhone === "function" ? storePhone.call($item) : storePhone))
                            }
                            __.push("</span>     </div>   ")
                        } else if (true && true) {
                            __.push('    <div class="btn_Square_out">       <a href="javascript:void(0)" class="btn btn-check" store-idx="');
                            if (typeof $index !== "undefined" && $index != null) {
                                __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                            }
                            __.push('">       <span class="name addr_over w135">');
                            if (typeof name !== "undefined" && name != null) {
                                __.push($.encode(typeof name === "function" ? name.call($item) : name))
                            }
                            __.push("</span>      </a>     <span>");
                            if (typeof cityName !== "undefined" && cityName != null) {
                                __.push($.encode(typeof cityName === "function" ? cityName.call($item) : cityName))
                            }
                            __.push("</span>     <span>");
                            if (typeof countyName !== "undefined" && countyName != null) {
                                __.push($.encode(typeof countyName === "function" ? countyName.call($item) : countyName))
                            }
                            __.push(' </span>     <span title="');
                            if (typeof address !== "undefined" && address != null) {
                                __.push($.encode(typeof address === "function" ? address.call($item) : address))
                            }
                            __.push('" class="addr_over" style="width:175px;vertical-align: middle;  line-height: 15px;  height: 16px;">');
                            if (typeof address !== "undefined" && address != null) {
                                __.push($.encode(typeof address === "function" ? address.call($item) : address))
                            }
                            __.push("</span>     <span>");
                            if (typeof storePhone !== "undefined" && storePhone != null) {
                                __.push($.encode(typeof storePhone === "function" ? storePhone.call($item) : storePhone))
                            }
                            __.push("</span>     </div>   ")
                        }
                        __.push("  ")
                    }
                })
            }
            __.push("")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.payment_main = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<h3 class="title-color font14">支付方式</h3>  <div class="content">   <div class="clearfix ml40">   ');
            if (typeof list !== "undefined" && list != null) {
                $.each(typeof list === "function" ? list.call($item) : list, function(pidx, pay) {
                    with (this) {
                        __.push("    ");
                        if (typeof pay.visible !== "undefined" && pay.visible != null && (typeof pay.visible === "function" ? pay.visible.call($item) : pay.visible)) {
                            __.push("          ");
                            if (typeof (pay.c == "storesPayment") !== "undefined" && pay.c == "storesPayment" != null && (typeof (pay.c == "storesPayment") === "function" ? (pay.c == "storesPayment").call($item) : pay.c == "storesPayment")) {
                                __.push('<!--门店付款-->     <div class="fl pr mr15 zi10" hoverup click-document-pre>              ');
                                if (typeof pay.selected !== "undefined" && pay.selected != null && (typeof pay.selected === "function" ? pay.selected.call($item) : pay.selected)) {
                                    __.push('     <a href="javascript:void(0)"  class="btn pr btn-check btn-checked mw120" code="storesPayment" >      <span class="name max_w160">');
                                    if (typeof pay.tip.label !== "undefined" && pay.tip.label != null) {
                                        __.push($.encode(typeof pay.tip.label === "function" ? pay.tip.label.call($item) : pay.tip.label))
                                    }
                                    __.push("-");
                                    if (typeof pay.ps.label !== "undefined" && pay.ps.label != null) {
                                        __.push($.encode(typeof pay.ps.label === "function" ? pay.ps.label.call($item) : pay.ps.label))
                                    }
                                    __.push('</span>      <b class="c-i tips_icon pabs payway_tips2 hide" hover g-hoverup-tip="');
                                    if (typeof pay.c !== "undefined" && pay.c != null) {
                                        __.push($.encode(typeof pay.c === "function" ? pay.c.call($item) : pay.c))
                                    }
                                    __.push('"></b>      <i class="c-i chose_icon"></i>     </a>     ')
                                } else if (typeof (pay.available == false) !== "undefined" && pay.available == false != null && (typeof (pay.available == false) === "function" ? (pay.available == false).call($item) : pay.available == false)) {
                                    __.push('     <a href="javascript:void(0)"  class="btn pr btn-check btn-disabled mw120" >      <span class="name max_w160">');
                                    if (typeof pay.tip.label !== "undefined" && pay.tip.label != null) {
                                        __.push($.encode(typeof pay.tip.label === "function" ? pay.tip.label.call($item) : pay.tip.label))
                                    }
                                    __.push('</span>      <b class="c-i tips_icon pabs payway_tips2 hide" hover g-hoverup-tip="');
                                    if (typeof pay.c !== "undefined" && pay.c != null) {
                                        __.push($.encode(typeof pay.c === "function" ? pay.c.call($item) : pay.c))
                                    }
                                    __.push('"></b>     </a>     ')
                                } else if (true && true) {
                                    __.push('     <a href="javascript:void(0)"  class="btn pr btn-check mw120" code="storesPayment">      <span class="name max_w160">');
                                    if (typeof pay.tip.label !== "undefined" && pay.tip.label != null) {
                                        __.push($.encode(typeof pay.tip.label === "function" ? pay.tip.label.call($item) : pay.tip.label))
                                    }
                                    __.push('</span>      <b class="c-i tips_icon pabs payway_tips2 hide" hover g-hoverup-tip="');
                                    if (typeof pay.c !== "undefined" && pay.c != null) {
                                        __.push($.encode(typeof pay.c === "function" ? pay.c.call($item) : pay.c))
                                    }
                                    __.push('"></b>     </a>     ')
                                }
                                __.push('     <div class="tips_detail pabs hide del2 box-sd1" g-hover-tip="');
                                if (typeof pay.c !== "undefined" && pay.c != null) {
                                    __.push($.encode(typeof pay.c === "function" ? pay.c.call($item) : pay.c))
                                }
                                __.push('">      <i class="c-i arrowup pabs tips_arrow" ></i>      ');
                                if (typeof pay.tip.desc !== "undefined" && pay.tip.desc != null) {
                                    __.push($.encode(typeof pay.tip.desc === "function" ? pay.tip.desc.call($item) : pay.tip.desc))
                                }
                                __.push('       <a href="');
                                if (typeof pay.tip.href !== "undefined" && pay.tip.href != null) {
                                    __.push($.encode(typeof pay.tip.href === "function" ? pay.tip.href.call($item) : pay.tip.href))
                                }
                                __.push('" target="_blank" class="ml10">');
                                if (typeof pay.tip.name !== "undefined" && pay.tip.name != null) {
                                    __.push($.encode(typeof pay.tip.name === "function" ? pay.tip.name.call($item) : pay.tip.name))
                                }
                                __.push('</a>     </div>              <div class="pr hide z10" id="mendianfukuan_tip" click-document-hide>               <div class="pabs content_area  zi10 " >                 <em class="pabs c-i arrowup"></em>                <a  class="closed c-i closebtn-new pabs" href="javascript:void(0)" g-close></a>                <div id="mendianfukuan_store" class="z10"></div>               </div>              </div>          </div>    ')
                            } else if (true && true) {
                                __.push('    <div class="fl pr mr15" hoverup>     ');
                                if (typeof pay.selected !== "undefined" && pay.selected != null && (typeof pay.selected === "function" ? pay.selected.call($item) : pay.selected)) {
                                    __.push('     <a href="javascript:void(0)"  class="btn pr btn-check btn-checked mw120" >      <span class="name">');
                                    if (typeof pay.tip.label !== "undefined" && pay.tip.label != null) {
                                        __.push($.encode(typeof pay.tip.label === "function" ? pay.tip.label.call($item) : pay.tip.label))
                                    }
                                    __.push('</span>      <b class="c-i tips_icon pabs payway_tips hide" hover g-hoverup-tip="');
                                    if (typeof pay.c !== "undefined" && pay.c != null) {
                                        __.push($.encode(typeof pay.c === "function" ? pay.c.call($item) : pay.c))
                                    }
                                    __.push('"></b>      <i class="c-i chose_icon"></i>     </a>     ')
                                } else if (typeof (pay.available == false) !== "undefined" && pay.available == false != null && (typeof (pay.available == false) === "function" ? (pay.available == false).call($item) : pay.available == false)) {
                                    __.push('     <a href="javascript:void(0)"  class="btn pr btn-check btn-disabled mw120">      <span class="name">');
                                    if (typeof pay.tip.label !== "undefined" && pay.tip.label != null) {
                                        __.push($.encode(typeof pay.tip.label === "function" ? pay.tip.label.call($item) : pay.tip.label))
                                    }
                                    __.push('</span>      <b class="c-i tips_icon pabs payway_tips hide" hover g-hoverup-tip="');
                                    if (typeof pay.c !== "undefined" && pay.c != null) {
                                        __.push($.encode(typeof pay.c === "function" ? pay.c.call($item) : pay.c))
                                    }
                                    __.push('"></b>     </a>     ')
                                } else if (true && true) {
                                    __.push('     <a href="javascript:void(0)" g-path="');
                                    if (typeof pidx !== "undefined" && pidx != null) {
                                        __.push($.encode(typeof pidx === "function" ? pidx.call($item) : pidx))
                                    }
                                    __.push('" class="btn pr btn-check mw120">      <span class="name">');
                                    if (typeof pay.tip.label !== "undefined" && pay.tip.label != null) {
                                        __.push($.encode(typeof pay.tip.label === "function" ? pay.tip.label.call($item) : pay.tip.label))
                                    }
                                    __.push('</span>      <b class="c-i tips_icon pabs payway_tips hide" hover g-hoverup-tip="');
                                    if (typeof pay.c !== "undefined" && pay.c != null) {
                                        __.push($.encode(typeof pay.c === "function" ? pay.c.call($item) : pay.c))
                                    }
                                    __.push('"></b>     </a>     ')
                                }
                                __.push('     <div class="tips_detail pabs hide box-sd1" g-hover-tip="');
                                if (typeof pay.c !== "undefined" && pay.c != null) {
                                    __.push($.encode(typeof pay.c === "function" ? pay.c.call($item) : pay.c))
                                }
                                __.push('">      <i class="c-i arrowup pabs tips_arrow"></i>      ');
                                if (typeof pay.tip.desc !== "undefined" && pay.tip.desc != null) {
                                    __.push($.encode(typeof pay.tip.desc === "function" ? pay.tip.desc.call($item) : pay.tip.desc))
                                }
                                __.push('       <a href="');
                                if (typeof pay.tip.href !== "undefined" && pay.tip.href != null) {
                                    __.push($.encode(typeof pay.tip.href === "function" ? pay.tip.href.call($item) : pay.tip.href))
                                }
                                __.push('" target="_blank" class="ml10">');
                                if (typeof pay.tip.name !== "undefined" && pay.tip.name != null) {
                                    __.push($.encode(typeof pay.tip.name === "function" ? pay.tip.name.call($item) : pay.tip.name))
                                }
                                __.push("</a>     </div>    </div>    ")
                            }
                            __.push("    ")
                        }
                        __.push("   ")
                    }
                })
            }
            __.push("   ");
            if (typeof ($page.site == "presell") !== "undefined" && $page.site == "presell" != null && (typeof ($page.site == "presell") === "function" ? ($page.site == "presell").call($item) : $page.site == "presell")) {
                __.push("    ");
                if (typeof (presellModifyStatus == "modify") !== "undefined" && presellModifyStatus == "modify" != null && (typeof (presellModifyStatus == "modify") === "function" ? (presellModifyStatus == "modify").call($item) : presellModifyStatus == "modify")) {
                    __.push('    <div class="fl pr" style="line-height:31px">       <div class="input-group">      <span class="fl">尾款支付信息通知手机号码：</span>       <input      no-modify="y"      type="text"       value="');
                    if (typeof $config.shoppingAtom.deliveryPreSell.smsMobileNumber !== "undefined" && $config.shoppingAtom.deliveryPreSell.smsMobileNumber != null) {
                        __.push($.encode(typeof $config.shoppingAtom.deliveryPreSell.smsMobileNumber === "function" ? $config.shoppingAtom.deliveryPreSell.smsMobileNumber.call($item) : $config.shoppingAtom.deliveryPreSell.smsMobileNumber))
                    }
                    __.push('"      presell-text-phone      class="form-control sm r-no-radius"       style="width:80px;">      <a href="javascript:void(0)"       class="btn btn-primary sm l-no-radius" presell-btn-phone>确定</a>      <a href="javascript:void(0)" class="fl ml10" presell-canel-phone>取消</a>     </div>     <span class="fontRed pabs" presell-error-phone style="top:24px;left:157px;"></span>    </div>    ')
                } else if (true && true) {
                    __.push('    <div class="fl" style="line-height:31px">       <i class="c-i tips fl" style="margin-right:4px;margin-top: 7px;"></i>     <span>尾款支付信息通知手机号码：');
                    if (typeof $config.shoppingAtom.deliveryPreSell.smsMobileNumber !== "undefined" && $config.shoppingAtom.deliveryPreSell.smsMobileNumber != null) {
                        __.push($.encode(typeof $config.shoppingAtom.deliveryPreSell.smsMobileNumber === "function" ? $config.shoppingAtom.deliveryPreSell.smsMobileNumber.call($item) : $config.shoppingAtom.deliveryPreSell.smsMobileNumber))
                    }
                    __.push('</span>      <a href="javascript:void 0" class="ml20" presell-modify-phone>修改</a>    </div>    ')
                }
                __.push("     ")
            }
            __.push("   </div>  </div>")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.preferential_main = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="p-panel" g-pipe>  ');
            if (typeof $config.VBLE.youhuiquan !== "undefined" && $config.VBLE.youhuiquan != null && $config.VBLE.youhuiquan()) {
                __.push("   ");
                if (typeof ($config.shoppingAtom.yhj == "N") !== "undefined" && $config.shoppingAtom.yhj == "N" != null && (typeof ($config.shoppingAtom.yhj == "N") === "function" ? ($config.shoppingAtom.yhj == "N").call($item) : $config.shoppingAtom.yhj == "N")) {
                    __.push('   <div class="chooes-hd clearfix mb10 pl38" g-click="setStage yhj Y,render">    <span class="triger fl mr5" >     <em class="ii c-i open fl mr5"></em>   ')
                } else if (typeof ($config.shoppingAtom.yhj == "Y") !== "undefined" && $config.shoppingAtom.yhj == "Y" != null && (typeof ($config.shoppingAtom.yhj == "Y") === "function" ? ($config.shoppingAtom.yhj == "Y").call($item) : $config.shoppingAtom.yhj == "Y")) {
                    __.push('   <div class="chooes-hd clearfix mb10 pl38" g-click="setStage yhj N,render">    <span class="triger fl mr5" >     <em class="ii c-i close fl mr5"></em>   ')
                }
                __.push('     使用优惠券    </span>    <span class="fontGray fl">');
                if (typeof $config.renderNotice !== "undefined" && $config.renderNotice != null) {
                    __.push($config.renderNotice("YHQ", $data))
                }
                __.push("</i></em></span>    ");
                if (typeof ($config.shoppingAtom.yhj == "Y") !== "undefined" && $config.shoppingAtom.yhj == "Y" != null && (typeof ($config.shoppingAtom.yhj == "Y") === "function" ? ($config.shoppingAtom.yhj == "Y").call($item) : $config.shoppingAtom.yhj == "Y")) {
                    __.push('    <a class="shipping-coupon-rule fr" target="_blank" href="');
                    if (typeof $config.URL.discountUseRule !== "undefined" && $config.URL.discountUseRule != null) {
                        __.push($.encode(typeof $config.URL.discountUseRule === "function" ? $config.URL.discountUseRule.call($item) : $config.URL.discountUseRule))
                    }
                    __.push('">了解优惠券&nbsp;<span class="jt">&gt;</span></a>    ')
                }
                __.push("   </div>   ");
                if (typeof ($config.shoppingAtom.yhj == "Y") !== "undefined" && $config.shoppingAtom.yhj == "Y" != null && (typeof ($config.shoppingAtom.yhj == "Y") === "function" ? ($config.shoppingAtom.yhj == "Y").call($item) : $config.shoppingAtom.yhj == "Y")) {
                    __.push('   <div class="chooes-bd">    <div class="tab-trigger clearfix">     <span class="tab-trigger-item tab-trigger-item-active text-center fl">我的优惠券      <em> （</em>');
                    if (typeof allCouponNum !== "undefined" && allCouponNum != null) {
                        __.push($.encode(typeof allCouponNum === "function" ? allCouponNum.call($item) : allCouponNum))
                    }
                    __.push('<em>）</em>     </span>    </div>    <!--使用优惠券-->    <div class="tab-content">     <!--使用优惠券 已经激活的优惠券列表-->     <div class="coupon-own">      ');
                    if (typeof (vrbsos.bcs && vrbsos.bcs.length > 0) !== "undefined" && (vrbsos.bcs && vrbsos.bcs.length > 0) != null && (typeof (vrbsos.bcs && vrbsos.bcs.length > 0) === "function" ? (vrbsos.bcs && vrbsos.bcs.length > 0).call($item) : vrbsos.bcs && vrbsos.bcs.length > 0)) {
                        __.push('       <!--蓝券-->       <dl class="tab-content-item">        <dt class="lineH">蓝券：</dt>        <dd class="Yhqcon">         <div class="divtabel">          <table class="redCard-lists" style="width:100%;">           <tbody>            ');
                        if (typeof getBCS().list !== "undefined" && getBCS().list != null) {
                            $.each(typeof getBCS().list === "function" ? getBCS().list.call($item) : getBCS().list, function($index, $value) {
                                with (this) {
                                    __.push("             ");
                                    if (typeof (available == false) !== "undefined" && available == false != null && (typeof (available == false) === "function" ? (available == false).call($item) : available == false)) {
                                        __.push('             <tr class="gray">             ')
                                    } else if (typeof checked !== "undefined" && checked != null && (typeof checked === "function" ? checked.call($item) : checked)) {
                                        __.push('             <tr class="checkedbg">             ')
                                    } else if (true && true) {
                                        __.push("             <tr>             ")
                                    }
                                    __.push('              <td class="w30"></td>              <td class="w30 text-center">               ');
                                    if (typeof (available == false) !== "undefined" && available == false != null && (typeof (available == false) === "function" ? (available == false).call($item) : available == false)) {
                                        __.push('               <label class="checkbox_out" >                <span class="c-i no_check">               ')
                                    } else if (typeof checked !== "undefined" && checked != null && (typeof checked === "function" ? checked.call($item) : checked)) {
                                        __.push('               <label class="checkbox_out" g-click="assocPathSelected vrbsos.bcs.');
                                        if (typeof $index !== "undefined" && $index != null) {
                                            __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                        }
                                        __.push(' false B,render">                <span class="c-i checkbox_chose">               ')
                                    } else if (true && true) {
                                        __.push('               <label class="checkbox_out" g-click="assocPathSelected vrbsos.bcs.');
                                        if (typeof $index !== "undefined" && $index != null) {
                                            __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                        }
                                        __.push(' true B,render">                <span class="c-i checkboxs">               ')
                                    }
                                    __.push("                </span>               </label>              </td>              ");
                                    if (typeof (available == false) !== "undefined" && available == false != null && (typeof (available == false) === "function" ? (available == false).call($item) : available == false)) {
                                        __.push('              <td class="w80">              ')
                                    } else if (true && true) {
                                        __.push('              <td class="fontRed w80 strong">              ')
                                    }
                                    __.push("               ¥");
                                    if (typeof faceValue !== "undefined" && faceValue != null) {
                                        __.push($.encode(typeof faceValue === "function" ? faceValue.call($item) : faceValue))
                                    }
                                    __.push('              </td>              <td title="');
                                    if (typeof description !== "undefined" && description != null) {
                                        __.push($.encode(typeof description === "function" ? description.call($item) : description))
                                    }
                                    __.push('">               <span class="i-block text-overflow w512">');
                                    if (typeof description !== "undefined" && description != null) {
                                        __.push($.encode(typeof description === "function" ? description.call($item) : description))
                                    }
                                    __.push('</span>              </td>              <td class="fontGray">有效期至：');
                                    if (typeof $config.formatLong !== "undefined" && $config.formatLong != null) {
                                        __.push($.encode($config.formatLong(expirationDate)))
                                    }
                                    __.push("</td>             </tr>            ")
                                }
                            })
                        }
                        __.push('           </tbody>          </table>         </div>         <div class="clearfix pdl_r20" more-btn>          ');
                        if (typeof getBCS().bottom !== "undefined" && getBCS().bottom != null && (typeof getBCS().bottom === "function" ? getBCS().bottom.call($item) : getBCS().bottom)) {
                            __.push('           <span class="fl line_up"></span>           ');
                            if (typeof ($config.shoppingAtom.lq_more == "Y") !== "undefined" && $config.shoppingAtom.lq_more == "Y" != null && (typeof ($config.shoppingAtom.lq_more == "Y") === "function" ? ($config.shoppingAtom.lq_more == "Y").call($item) : $config.shoppingAtom.lq_more == "Y")) {
                                __.push('           <a href="javascript:void(0)"class="moreyhq fl"            g-click="setStage lq_more N,render">            更多<i class="c-i arrowdown ml8"></i>           </a>           ')
                            } else if (typeof ($config.shoppingAtom.lq_more == "N") !== "undefined" && $config.shoppingAtom.lq_more == "N" != null && (typeof ($config.shoppingAtom.lq_more == "N") === "function" ? ($config.shoppingAtom.lq_more == "N").call($item) : $config.shoppingAtom.lq_more == "N")) {
                                __.push('           <a href="javascript:void(0)"class="moreyhq fl"            g-click="setStage lq_more Y,render">            收起<i class="c-i arrowup2 ml8"></i>           </a>           ')
                            }
                            __.push('           <span class="fl line_up"></span>          ')
                        }
                        __.push("         </div>        </dd>       </dl>      ")
                    }
                    __.push("      ");
                    if (typeof (vrbsos.rcs && vrbsos.rcs.length > 0) !== "undefined" && (vrbsos.rcs && vrbsos.rcs.length > 0) != null && (typeof (vrbsos.rcs && vrbsos.rcs.length > 0) === "function" ? (vrbsos.rcs && vrbsos.rcs.length > 0).call($item) : vrbsos.rcs && vrbsos.rcs.length > 0)) {
                        __.push('       <!--红券-->       <dl class="tab-content-item">        <dt class="lineH">红券：<span class="fontGray"></span></dt>        ');
                        if (typeof (verifyStatus == "VERIFY_NOT_ACTIVATED") !== "undefined" && verifyStatus == "VERIFY_NOT_ACTIVATED" != null && (typeof (verifyStatus == "VERIFY_NOT_ACTIVATED") === "function" ? (verifyStatus == "VERIFY_NOT_ACTIVATED").call($item) : verifyStatus == "VERIFY_NOT_ACTIVATED")) {
                            __.push('        <dd class="open_mima">');
                            if (typeof $config.errorText.f1 !== "undefined" && $config.errorText.f1 != null) {
                                __.push(typeof $config.errorText.f1 === "function" ? $config.errorText.f1.call($item) : $config.errorText.f1)
                            }
                            __.push("</dd>        ")
                        }
                        __.push('        <dd class="Yhqcon">         <div class="divtabel">          <table class="redCard-lists" style="width:100%;">           <tbody>            ');
                        if (typeof getRCS().list !== "undefined" && getRCS().list != null) {
                            $.each(typeof getRCS().list === "function" ? getRCS().list.call($item) : getRCS().list, function($index, $value) {
                                with (this) {
                                    __.push("             ");
                                    if (typeof (available == false) !== "undefined" && available == false != null && (typeof (available == false) === "function" ? (available == false).call($item) : available == false)) {
                                        __.push('             <tr class="gray">             ')
                                    } else if (typeof checked !== "undefined" && checked != null && (typeof checked === "function" ? checked.call($item) : checked)) {
                                        __.push('             <tr class="checkedbg">             ')
                                    } else if (true && true) {
                                        __.push("             <tr>             ")
                                    }
                                    __.push('              <td class="w30"></td>              <td class="w30 text-center">               ');
                                    if (typeof (available == false) !== "undefined" && available == false != null && (typeof (available == false) === "function" ? (available == false).call($item) : available == false)) {
                                        __.push('               <label class="checkbox_out" >                <span class="c-i no_check">               ')
                                    } else if (typeof checked !== "undefined" && checked != null && (typeof checked === "function" ? checked.call($item) : checked)) {
                                        __.push('               <label class="checkbox_out" g-click="assocPathSelected vrbsos.rcs.');
                                        if (typeof $index !== "undefined" && $index != null) {
                                            __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                        }
                                        __.push(' false R,render">                <span class="c-i checkbox_chose" >               ')
                                    } else if (true && true) {
                                        __.push('               <label class="checkbox_out" g-click="assocPathSelected vrbsos.rcs.');
                                        if (typeof $index !== "undefined" && $index != null) {
                                            __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                        }
                                        __.push(' true R,render">                <span class="c-i checkboxs">               ')
                                    }
                                    __.push("                </span>               </label>              </td>              ");
                                    if (typeof (available == false) !== "undefined" && available == false != null && (typeof (available == false) === "function" ? (available == false).call($item) : available == false)) {
                                        __.push('              <td class="w80">              ')
                                    } else if (true && true) {
                                        __.push('              <td class="fontRed w80 strong">              ')
                                    }
                                    __.push("               ¥");
                                    if (typeof faceValue !== "undefined" && faceValue != null) {
                                        __.push($.encode(typeof faceValue === "function" ? faceValue.call($item) : faceValue))
                                    }
                                    __.push('              </td>              <td title="');
                                    if (typeof description !== "undefined" && description != null) {
                                        __.push($.encode(typeof description === "function" ? description.call($item) : description))
                                    }
                                    __.push('">               <span class="i-block text-overflow w512">');
                                    if (typeof description !== "undefined" && description != null) {
                                        __.push($.encode(typeof description === "function" ? description.call($item) : description))
                                    }
                                    __.push('</span>              </td>              <td class="w200 fontGray mr30">有效期至：');
                                    if (typeof $config.formatLong !== "undefined" && $config.formatLong != null) {
                                        __.push($.encode($config.formatLong(expirationDate)))
                                    }
                                    __.push("</td>             </tr>            ")
                                }
                            })
                        }
                        __.push('           </tbody>          </table>         </div>         <div class="clearfix pdl_r20" more-btn>          ');
                        if (typeof getRCS().bottom !== "undefined" && getRCS().bottom != null && (typeof getRCS().bottom === "function" ? getRCS().bottom.call($item) : getRCS().bottom)) {
                            __.push('           <span class="fl line_up"></span>           ');
                            if (typeof ($config.shoppingAtom.hq_more == "Y") !== "undefined" && $config.shoppingAtom.hq_more == "Y" != null && (typeof ($config.shoppingAtom.hq_more == "Y") === "function" ? ($config.shoppingAtom.hq_more == "Y").call($item) : $config.shoppingAtom.hq_more == "Y")) {
                                __.push('           <a href="javascript:void(0)"class="moreyhq fl"            g-click="setStage hq_more N,render">            更多<i class="c-i arrowdown ml8"></i>           </a>           ')
                            } else if (typeof ($config.shoppingAtom.hq_more == "N") !== "undefined" && $config.shoppingAtom.hq_more == "N" != null && (typeof ($config.shoppingAtom.hq_more == "N") === "function" ? ($config.shoppingAtom.hq_more == "N").call($item) : $config.shoppingAtom.hq_more == "N")) {
                                __.push('           <a href="javascript:void(0)"class="moreyhq fl"            g-click="setStage hq_more Y,render">            收起<i class="c-i arrowup2 ml8"></i>           </a>           ')
                            }
                            __.push('           <span class="fl line_up"></span>          ')
                        }
                        __.push("         </div>        </dd>       </dl>      ")
                    }
                    __.push("      ");
                    if (typeof (vrbsos.scs && vrbsos.scs.length > 0) !== "undefined" && (vrbsos.scs && vrbsos.scs.length > 0) != null && (typeof (vrbsos.scs && vrbsos.scs.length > 0) === "function" ? (vrbsos.scs && vrbsos.scs.length > 0).call($item) : vrbsos.scs && vrbsos.scs.length > 0)) {
                        __.push('       <!--红券-->       <dl class="tab-content-item">        <dt class="lineH">店铺券：</dt>        <dd class="Yhqcon">         <div class="divtabel">          <table class="redCard-lists" style="width:100%;">           <tbody>            ');
                        if (typeof getDCS().list !== "undefined" && getDCS().list != null) {
                            $.each(typeof getDCS().list === "function" ? getDCS().list.call($item) : getDCS().list, function($index, $value) {
                                with (this) {
                                    __.push("             ");
                                    if (typeof (available == false) !== "undefined" && available == false != null && (typeof (available == false) === "function" ? (available == false).call($item) : available == false)) {
                                        __.push('             <tr class="gray">             ')
                                    } else if (typeof checked !== "undefined" && checked != null && (typeof checked === "function" ? checked.call($item) : checked)) {
                                        __.push('             <tr class="checkedbg">             ')
                                    } else if (true && true) {
                                        __.push("             <tr>             ")
                                    }
                                    __.push('              <td class="w30"></td>              <td class="w30 text-center">               ');
                                    if (typeof (available == false) !== "undefined" && available == false != null && (typeof (available == false) === "function" ? (available == false).call($item) : available == false)) {
                                        __.push('               <label class="checkbox_out" >                <span class="c-i no_check">               ')
                                    } else if (typeof checked !== "undefined" && checked != null && (typeof checked === "function" ? checked.call($item) : checked)) {
                                        __.push('               <label class="checkbox_out" g-click="assocPathSelected vrbsos.scs.');
                                        if (typeof $index !== "undefined" && $index != null) {
                                            __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                        }
                                        __.push(' false D,render">                <span class="c-i checkbox_chose">               ')
                                    } else if (true && true) {
                                        __.push('               <label class="checkbox_out" g-click="assocPathSelected vrbsos.scs.');
                                        if (typeof $index !== "undefined" && $index != null) {
                                            __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                                        }
                                        __.push(' true D,render">                <span class="c-i checkboxs">               ')
                                    }
                                    __.push("                </span>               </label>              </td>              ");
                                    if (typeof (available == false) !== "undefined" && available == false != null && (typeof (available == false) === "function" ? (available == false).call($item) : available == false)) {
                                        __.push('              <td class="w80">              ')
                                    } else if (true && true) {
                                        __.push('              <td class="fontRed w80 strong">              ')
                                    }
                                    __.push("               ¥");
                                    if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                                        __.push($.encode($config.formatAmount(faceValue)))
                                    }
                                    __.push('              </td>              <td title="');
                                    if (typeof description !== "undefined" && description != null) {
                                        __.push($.encode(typeof description === "function" ? description.call($item) : description))
                                    }
                                    __.push('">               <span class="i-block text-overflow w512">');
                                    if (typeof description !== "undefined" && description != null) {
                                        __.push($.encode(typeof description === "function" ? description.call($item) : description))
                                    }
                                    __.push('</span>              </td>              <td class="w200 fontGray mr30">有效期至：');
                                    if (typeof $config.formatLong !== "undefined" && $config.formatLong != null) {
                                        __.push($.encode($config.formatLong(expirationDate)))
                                    }
                                    __.push("</td>             </tr>            ")
                                }
                            })
                        }
                        __.push('           </tbody>          </table>         </div>         <div class="clearfix pdl_r20" more-btn>          ');
                        if (typeof getDCS().bottom !== "undefined" && getDCS().bottom != null && (typeof getDCS().bottom === "function" ? getDCS().bottom.call($item) : getDCS().bottom)) {
                            __.push('           <span class="fl line_up"></span>           ');
                            if (typeof ($config.shoppingAtom.dpq_more == "Y") !== "undefined" && $config.shoppingAtom.dpq_more == "Y" != null && (typeof ($config.shoppingAtom.dpq_more == "Y") === "function" ? ($config.shoppingAtom.dpq_more == "Y").call($item) : $config.shoppingAtom.dpq_more == "Y")) {
                                __.push('           <a href="javascript:void(0)"class="moreyhq fl"            g-click="setStage dpq_more N,render">            更多<i class="c-i arrowdown ml8"></i>           </a>           ')
                            } else if (typeof ($config.shoppingAtom.dpq_more == "N") !== "undefined" && $config.shoppingAtom.dpq_more == "N" != null && (typeof ($config.shoppingAtom.dpq_more == "N") === "function" ? ($config.shoppingAtom.dpq_more == "N").call($item) : $config.shoppingAtom.dpq_more == "N")) {
                                __.push('           <a href="javascript:void(0)"class="moreyhq fl"            g-click="setStage dpq_more Y,render">            收起<i class="c-i arrowup2 ml8"></i>           </a>           ')
                            }
                            __.push('           <span class="fl line_up"></span>          ')
                        }
                        __.push("         </div>        </dd>       </dl>      ")
                    }
                    __.push('     </div>     <!--激活的优惠券-->     <div class="coupon-own activate mt10 text-left">      <dl class="redCard-act" id="actRedcard">       <dt class="activateYhq ">        ');
                    if (typeof ($config.shoppingAtom.yhj_jh == "N") !== "undefined" && $config.shoppingAtom.yhj_jh == "N" != null && (typeof ($config.shoppingAtom.yhj_jh == "N") === "function" ? ($config.shoppingAtom.yhj_jh == "N").call($item) : $config.shoppingAtom.yhj_jh == "N")) {
                        __.push('        <span class="trigers fontRed gomeactivate mr5" g-click="setStage yhj_jh Y,render">         <em class="ii c-i open fl"></em>激活优惠券        </span>        ')
                    } else if (typeof ($config.shoppingAtom.yhj_jh == "Y") !== "undefined" && $config.shoppingAtom.yhj_jh == "Y" != null && (typeof ($config.shoppingAtom.yhj_jh == "Y") === "function" ? ($config.shoppingAtom.yhj_jh == "Y").call($item) : $config.shoppingAtom.yhj_jh == "Y")) {
                        __.push('        <span class="trigers fontRed gomeactivate mr5" g-click="setStage yhj_jh N,render">         <em class="ii c-i close fl"></em>激活优惠券        </span>        ')
                    }
                    __.push('        <span class="fontGray ml5">国美在线或者国美在线合作方发放的优惠券</span>       </dt>       ');
                    if (typeof ($config.shoppingAtom.yhj_jh == "Y") !== "undefined" && $config.shoppingAtom.yhj_jh == "Y" != null && (typeof ($config.shoppingAtom.yhj_jh == "Y") === "function" ? ($config.shoppingAtom.yhj_jh == "Y").call($item) : $config.shoppingAtom.yhj_jh == "Y")) {
                        __.push('       <dd class="mt10 redCard-box" >        <form class="active-nForm">         <table class="redReady" cellspacing="0" cellpadding="0">          <tbody>           <tr>            <td>请输入兑换码：</td>            <td>             <input              g-keyup="setValueStage yhj_bm this"             value="');
                        if (typeof $config.shoppingAtom.yhj_bm !== "undefined" && $config.shoppingAtom.yhj_bm != null) {
                            __.push($.encode(typeof $config.shoppingAtom.yhj_bm === "function" ? $config.shoppingAtom.yhj_bm.call($item) : $config.shoppingAtom.yhj_bm))
                        }
                        __.push('"              class="             form-control mr5             ');
                        if (typeof $config.shoppingAtom.yhj_tip !== "undefined" && $config.shoppingAtom.yhj_tip != null && (typeof $config.shoppingAtom.yhj_tip === "function" ? $config.shoppingAtom.yhj_tip.call($item) : $config.shoppingAtom.yhj_tip)) {
                            __.push("             error             ")
                        }
                        __.push('             " type="text" placeholder="编码"  style="width:135px;">-</td>            <td>             <input              g-keyup="setValueStage yhj_jhm this"             value="');
                        if (typeof $config.shoppingAtom.yhj_jhm !== "undefined" && $config.shoppingAtom.yhj_jhm != null) {
                            __.push($.encode(typeof $config.shoppingAtom.yhj_jhm === "function" ? $config.shoppingAtom.yhj_jhm.call($item) : $config.shoppingAtom.yhj_jhm))
                        }
                        __.push('"             class="             form-control mr5 ml5             ');
                        if (typeof $config.shoppingAtom.yhj_tip !== "undefined" && $config.shoppingAtom.yhj_tip != null && (typeof $config.shoppingAtom.yhj_tip === "function" ? $config.shoppingAtom.yhj_tip.call($item) : $config.shoppingAtom.yhj_tip)) {
                            __.push("             error             ")
                        }
                        __.push('             " type="text" placeholder="激活码" style="width:135px;">-</td>            <td>             <input              g-keyup="setValueStage yhj_yzm this"             value="');
                        if (typeof $config.shoppingAtom.yhj_yzm !== "undefined" && $config.shoppingAtom.yhj_yzm != null) {
                            __.push($.encode(typeof $config.shoppingAtom.yhj_yzm === "function" ? $config.shoppingAtom.yhj_yzm.call($item) : $config.shoppingAtom.yhj_yzm))
                        }
                        __.push('"             class="             form-control mr5 ml5             ');
                        if (typeof $config.shoppingAtom.yhj_tip !== "undefined" && $config.shoppingAtom.yhj_tip != null && (typeof $config.shoppingAtom.yhj_tip === "function" ? $config.shoppingAtom.yhj_tip.call($item) : $config.shoppingAtom.yhj_tip)) {
                            __.push("             error             ")
                        }
                        __.push('             "              type="text" placeholder="验证码" style=" width:75px;vertical-align: middle;">             <span class="nValidate mr5 ml5"><img src="');
                        if (typeof $config.URL.imgcode !== "undefined" && $config.URL.imgcode != null) {
                            __.push($.encode(typeof $config.URL.imgcode === "function" ? $config.URL.imgcode.call($item) : $config.URL.imgcode))
                        }
                        __.push("&capCd=");
                        if (typeof $config.shoppingAtom.yhj_img !== "undefined" && $config.shoppingAtom.yhj_img != null) {
                            __.push($.encode(typeof $config.shoppingAtom.yhj_img === "function" ? $config.shoppingAtom.yhj_img.call($item) : $config.shoppingAtom.yhj_img))
                        }
                        __.push('"></span>             <a class=" fontBlue mr20 ml5" href="javascript:void(0)" g-click="setTimeLongStage yhj_img,render">换一张</a>            </td>            <td>             ');
                        if (typeof $config.isDisabledJH !== "undefined" && $config.isDisabledJH != null && $config.isDisabledJH()) {
                            __.push('             <a href="javascript:void(0)" class="btn btn-disabled" >激活</a>             ')
                        } else if (true && true) {
                            __.push('             <a href="javascript:void(0)" class="btn btn-primary" g-click="activeYCode,setTimeLongStage yhj_img">激活</a>             ')
                        }
                        __.push('            </td>                  </tr>           <tr>            <td ></td>            <td colspan="3">             ');
                        if (typeof $config.shoppingAtom.yhj_tip !== "undefined" && $config.shoppingAtom.yhj_tip != null && (typeof $config.shoppingAtom.yhj_tip === "function" ? $config.shoppingAtom.yhj_tip.call($item) : $config.shoppingAtom.yhj_tip)) {
                            __.push('             <span class="fontRed">&nbsp;&nbsp;');
                            if (typeof $config.shoppingAtom.yhj_tip !== "undefined" && $config.shoppingAtom.yhj_tip != null) {
                                __.push($.encode(typeof $config.shoppingAtom.yhj_tip === "function" ? $config.shoppingAtom.yhj_tip.call($item) : $config.shoppingAtom.yhj_tip))
                            }
                            __.push("</span>             ")
                        }
                        __.push("            </td>                </tr>          </tbody>         </table>        </form>       </dd>       ")
                    }
                    __.push('      </dl>      <div style="height:5px;border-bottom:1px solid #e6e6e6"></div>      ');
                    if (typeof vrbsos.sp.currentPoint !== "undefined" && vrbsos.sp.currentPoint != null && (typeof vrbsos.sp.currentPoint === "function" ? vrbsos.sp.currentPoint.call($item) : vrbsos.sp.currentPoint)) {
                        __.push('       <p style="font-weight: normal;">可用国美门店积分        <span>');
                        if (typeof vrbsos.sp.currentPoint !== "undefined" && vrbsos.sp.currentPoint != null) {
                            __.push($.encode(typeof vrbsos.sp.currentPoint === "function" ? vrbsos.sp.currentPoint.call($item) : vrbsos.sp.currentPoint))
                        }
                        __.push('</span>        积分，本次最多可使用&nbsp;        <span class="fontRed">');
                        if (typeof vrbsos.sp.availablePoint !== "undefined" && vrbsos.sp.availablePoint != null) {
                            __.push($.encode(typeof vrbsos.sp.availablePoint === "function" ? vrbsos.sp.availablePoint.call($item) : vrbsos.sp.availablePoint))
                        }
                        __.push('</span>        &nbsp;积分<span class="fontGray">&nbsp;(1积分等于1元红券)</span>       </p>       <dl class="clearfix">        <dt class="fl">门店会员积分：</dt>        <dd class="fl mr20">         <div class="input-group">          <input           type="text" .          class="form-control sm r-no-radius"           style="width:150px;"           value="');
                        if (typeof $config.shoppingAtom.mdhyjf !== "undefined" && $config.shoppingAtom.mdhyjf != null) {
                            __.push($.encode(typeof $config.shoppingAtom.mdhyjf === "function" ? $config.shoppingAtom.mdhyjf.call($item) : $config.shoppingAtom.mdhyjf))
                        }
                        __.push('"           g-keyup="setValueStage mdhyjf this" />          ');
                        if (typeof (vrbsos.sp.availablePoint == 0) !== "undefined" && vrbsos.sp.availablePoint == 0 != null && (typeof (vrbsos.sp.availablePoint == 0) === "function" ? (vrbsos.sp.availablePoint == 0).call($item) : vrbsos.sp.availablePoint == 0)) {
                            __.push('          <a class="btn btn-disabled sm l-no-radius" href="javascript:void(0)" > 兑换 </a>          ')
                        } else if (true && true) {
                            __.push('          <a class="btn btn-primary sm l-no-radius" href="javascript:void(0)" g-click="changeInto"> 兑换 </a>          ')
                        }
                        __.push("         </div>         ");
                        if (typeof $config.shoppingAtom.mdhyjf_tip !== "undefined" && $config.shoppingAtom.mdhyjf_tip != null && (typeof $config.shoppingAtom.mdhyjf_tip === "function" ? $config.shoppingAtom.mdhyjf_tip.call($item) : $config.shoppingAtom.mdhyjf_tip)) {
                            __.push('         <span class="fontRed">');
                            if (typeof $config.shoppingAtom.mdhyjf_tip !== "undefined" && $config.shoppingAtom.mdhyjf_tip != null) {
                                __.push($.encode(typeof $config.shoppingAtom.mdhyjf_tip === "function" ? $config.shoppingAtom.mdhyjf_tip.call($item) : $config.shoppingAtom.mdhyjf_tip))
                            }
                            __.push("</span>         ")
                        }
                        __.push('        </dd>        <dd class="fl">                 </dd>       </dl>      <div style="height:5px;border-bottom:1px solid #e6e6e6"></div>      ')
                    }
                    __.push('            <p class="syyhq">共使用<em class=" fontRed">');
                    if (typeof selectedCouponNum !== "undefined" && selectedCouponNum != null) {
                        __.push($.encode(typeof selectedCouponNum === "function" ? selectedCouponNum.call($item) : selectedCouponNum))
                    }
                    __.push('</em>张优惠券，可优惠<b class=" fontRed">');
                    if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                        __.push($.encode($config.formatAmount(canBeSubtracted)))
                    }
                    __.push("</b>元</p>     </div>    </div>   </div>   ")
                }
                __.push("  ")
            }
            __.push("  ");
            if (typeof $config.VBLE.shiyongjifen !== "undefined" && $config.VBLE.shiyongjifen != null && $config.VBLE.shiyongjifen()) {
                __.push('    <div class="chooes-hd clearfix mb10 pl38">    ');
                if (typeof ($config.shoppingAtom.syjf == "N") !== "undefined" && $config.shoppingAtom.syjf == "N" != null && (typeof ($config.shoppingAtom.syjf == "N") === "function" ? ($config.shoppingAtom.syjf == "N").call($item) : $config.shoppingAtom.syjf == "N")) {
                    __.push('    <span class="triger fl mr5" g-click="setStage syjf Y,render"><em class="ii c-i open fl mr5"></em>使用积分</span>    ')
                } else if (typeof ($config.shoppingAtom.syjf == "Y") !== "undefined" && $config.shoppingAtom.syjf == "Y" != null && (typeof ($config.shoppingAtom.syjf == "Y") === "function" ? ($config.shoppingAtom.syjf == "Y").call($item) : $config.shoppingAtom.syjf == "Y")) {
                    __.push('    <span class="triger fl mr5" g-click="setStage syjf N,render"><em class="ii c-i close fl mr5"></em>使用积分</span>    ')
                }
                __.push('    <span class="fontGray fl">(国美在线积分)</span>    ');
                if (typeof ($config.shoppingAtom.syjf == "Y") !== "undefined" && $config.shoppingAtom.syjf == "Y" != null && (typeof ($config.shoppingAtom.syjf == "Y") === "function" ? ($config.shoppingAtom.syjf == "Y").call($item) : $config.shoppingAtom.syjf == "Y")) {
                    __.push('    <a class="know fr pr30 " target="_blank" href="');
                    if (typeof $config.URL.integralRule !== "undefined" && $config.URL.integralRule != null) {
                        __.push($.encode(typeof $config.URL.integralRule === "function" ? $config.URL.integralRule.call($item) : $config.URL.integralRule))
                    }
                    __.push('">了解积分&nbsp;<span class="jt">&gt;</span></a>    ')
                }
                __.push("   </div>   ");
                if (typeof ($config.shoppingAtom.syjf == "Y") !== "undefined" && $config.shoppingAtom.syjf == "Y" != null && (typeof ($config.shoppingAtom.syjf == "Y") === "function" ? ($config.shoppingAtom.syjf == "Y").call($item) : $config.shoppingAtom.syjf == "Y")) {
                    __.push('   <div class="chooes-bd bd1">    <div class="integral">     <p class="use_jifen">国美在线积分&nbsp;&nbsp;<span class="tips fontGray pl20">积分一经使用，暂不支持返还，若订单取消、拒收、退货等均以红券退回（红券有效期30天）。</span></p>     ');
                    if (typeof (verifyStatus == "VERIFY_NOT_ACTIVATED") !== "undefined" && verifyStatus == "VERIFY_NOT_ACTIVATED" != null && (typeof (verifyStatus == "VERIFY_NOT_ACTIVATED") === "function" ? (verifyStatus == "VERIFY_NOT_ACTIVATED").call($item) : verifyStatus == "VERIFY_NOT_ACTIVATED")) {
                        __.push("      ");
                        if (typeof $config.errorText.f1 !== "undefined" && $config.errorText.f1 != null) {
                            __.push(typeof $config.errorText.f1 === "function" ? $config.errorText.f1.call($item) : $config.errorText.f1)
                        }
                        __.push("     ")
                    }
                    __.push("      ");
                    if (typeof $config.isDisableSYGMZXJF !== "undefined" && $config.isDisableSYGMZXJF != null && $config.isDisableSYGMZXJF(vrbsos)) {
                        __.push('     <label class="checkbox_out">      <span class="c-i no_check mr5 fl use" > </span>      ')
                    } else if (typeof vrbsos.op.selected !== "undefined" && vrbsos.op.selected != null && (typeof vrbsos.op.selected === "function" ? vrbsos.op.selected.call($item) : vrbsos.op.selected)) {
                        __.push('     <label class="checkbox_out" g-click="assocPathSelected vrbsos.op false ZXJF,render">      <span class="c-i checkbox_chose mr5 fl use" > </span>      ')
                    } else if (true && true) {
                        __.push('     <label class="checkbox_out" g-click="assocPathSelected vrbsos.op true ZXJF,render">      <span class="c-i checkboxs mr5 fl use" > </span>      ')
                    }
                    __.push('      本次使用 <em class="fontRed">');
                    if (typeof vrbsos.op.currentPoint !== "undefined" && vrbsos.op.currentPoint != null) {
                        __.push($.encode(typeof vrbsos.op.currentPoint === "function" ? vrbsos.op.currentPoint.call($item) : vrbsos.op.currentPoint))
                    }
                    __.push('</em>积分<span class="fontGray ml20">账户可用积分为');
                    if (typeof vrbsos.op.availablePoint !== "undefined" && vrbsos.op.availablePoint != null) {
                        __.push($.encode(typeof vrbsos.op.availablePoint === "function" ? vrbsos.op.availablePoint.call($item) : vrbsos.op.availablePoint))
                    }
                    __.push("积分</span>       ");
                    if (typeof (vrbsos.op.vase == "EXCEPTION") !== "undefined" && vrbsos.op.vase == "EXCEPTION" != null && (typeof (vrbsos.op.vase == "EXCEPTION") === "function" ? (vrbsos.op.vase == "EXCEPTION").call($item) : vrbsos.op.vase == "EXCEPTION")) {
                        __.push('      <span class="fontRed ml20">您的账户异常，暂时无法使用，请联系客服：4008-708-708</span>      ')
                    }
                    __.push("     </label>         </div>   </div>   ")
                }
                __.push("  ")
            }
            __.push("    <!--美通卡-->  ");
            if (typeof $config.VBLE.shiyongguomeiE !== "undefined" && $config.VBLE.shiyongguomeiE != null && $config.VBLE.shiyongguomeiE()) {
                __.push('   <div class="chooes-hd clearfix mb10 pl38">    ');
                if (typeof ($config.shoppingAtom.sygmek == "N") !== "undefined" && $config.shoppingAtom.sygmek == "N" != null && (typeof ($config.shoppingAtom.sygmek == "N") === "function" ? ($config.shoppingAtom.sygmek == "N").call($item) : $config.shoppingAtom.sygmek == "N")) {
                    __.push('           <span class="triger fl mr5" g-click="setStage sygmek Y,render"><em class="ii c-i open fl mr5"></em>使用美通卡</span>       ')
                } else if (typeof ($config.shoppingAtom.sygmek == "Y") !== "undefined" && $config.shoppingAtom.sygmek == "Y" != null && (typeof ($config.shoppingAtom.sygmek == "Y") === "function" ? ($config.shoppingAtom.sygmek == "Y").call($item) : $config.shoppingAtom.sygmek == "Y")) {
                    __.push('        <span class="triger fl mr5" g-click="setStage sygmek N,render"><em class="ii c-i close fl mr5"></em>使用美通卡</span>       ')
                }
                __.push("   </div>   ");
                if (typeof ($config.shoppingAtom.sygmek == "Y") !== "undefined" && $config.shoppingAtom.sygmek == "Y" != null && (typeof ($config.shoppingAtom.sygmek == "Y") === "function" ? ($config.shoppingAtom.sygmek == "Y").call($item) : $config.shoppingAtom.sygmek == "Y")) {
                    __.push('   <div class="bd1 chooes-bd">    <div class="e-card-wrap">     <div class="e-card-title">     ');
                    if (typeof (verifyStatus == "VERIFY_NOT_ACTIVATED") !== "undefined" && verifyStatus == "VERIFY_NOT_ACTIVATED" != null && (typeof (verifyStatus == "VERIFY_NOT_ACTIVATED") === "function" ? (verifyStatus == "VERIFY_NOT_ACTIVATED").call($item) : verifyStatus == "VERIFY_NOT_ACTIVATED")) {
                        __.push("      ");
                        if (typeof $config.errorText.f1 !== "undefined" && $config.errorText.f1 != null) {
                            __.push(typeof $config.errorText.f1 === "function" ? $config.errorText.f1.call($item) : $config.errorText.f1)
                        }
                        __.push("     ")
                    }
                    __.push('      <!-- <span>为了保障您的账户资金安全，国美E卡暂不可用，请先</span>开启国美在线支付密码 > -->      <p>特别提示：美通卡只用于购买自营商品，不可购买金银投资、汽车及虚拟类商品。</p>     </div>      <div class="bind-e">      <div class="bind-e-content">        <p>绑定美通卡</p>       <div class="bind-e-card-wrap" >        <span class="bind-e-please">请您输入手中美通卡的密码：</span>        <input  class="form-control  e-num"  type="text"          g-keyup="setValueStage ecard_1 this"         value="');
                    if (typeof $config.shoppingAtom.ecard_1 !== "undefined" && $config.shoppingAtom.ecard_1 != null) {
                        __.push($.encode(typeof $config.shoppingAtom.ecard_1 === "function" ? $config.shoppingAtom.ecard_1.call($item) : $config.shoppingAtom.ecard_1))
                    }
                    __.push('">        <span>-</span>        <input  class="form-control  e-num"  type="text"         g-keyup="setValueStage ecard_2 this"         value="');
                    if (typeof $config.shoppingAtom.ecard_2 !== "undefined" && $config.shoppingAtom.ecard_2 != null) {
                        __.push($.encode(typeof $config.shoppingAtom.ecard_2 === "function" ? $config.shoppingAtom.ecard_2.call($item) : $config.shoppingAtom.ecard_2))
                    }
                    __.push('"        >        <span>-</span>        <input  class="form-control  e-num" type="text"         g-keyup="setValueStage ecard_3 this"         value="');
                    if (typeof $config.shoppingAtom.ecard_3 !== "undefined" && $config.shoppingAtom.ecard_3 != null) {
                        __.push($.encode(typeof $config.shoppingAtom.ecard_3 === "function" ? $config.shoppingAtom.ecard_3.call($item) : $config.shoppingAtom.ecard_3))
                    }
                    __.push('"        >        <span>-</span>        <input  class="form-control  e-num" type="text"         g-keyup="setValueStage ecard_4 this"         value="');
                    if (typeof $config.shoppingAtom.ecard_4 !== "undefined" && $config.shoppingAtom.ecard_4 != null) {
                        __.push($.encode(typeof $config.shoppingAtom.ecard_4 === "function" ? $config.shoppingAtom.ecard_4.call($item) : $config.shoppingAtom.ecard_4))
                    }
                    __.push('"        >            <input class="form-control ver-code"          g-keyup="setValueStage ecard_yzm this"         value="');
                    if (typeof $config.shoppingAtom.ecard_yzm !== "undefined" && $config.shoppingAtom.ecard_yzm != null) {
                        __.push($.encode(typeof $config.shoppingAtom.ecard_yzm === "function" ? $config.shoppingAtom.ecard_yzm.call($item) : $config.shoppingAtom.ecard_yzm))
                    }
                    __.push('">        <span class="fontRed">&nbsp;&nbsp;');
                    if (typeof $config.shoppingAtom.ecard_yzm_tip !== "undefined" && $config.shoppingAtom.ecard_yzm_tip != null) {
                        __.push(typeof $config.shoppingAtom.ecard_yzm_tip === "function" ? $config.shoppingAtom.ecard_yzm_tip.call($item) : $config.shoppingAtom.ecard_yzm_tip)
                    }
                    __.push('</span>         <a class="ver-code-pic"><img src="');
                    if (typeof $config.URL.imgCodeMTK !== "undefined" && $config.URL.imgCodeMTK != null) {
                        __.push($.encode(typeof $config.URL.imgCodeMTK === "function" ? $config.URL.imgCodeMTK.call($item) : $config.URL.imgCodeMTK))
                    }
                    __.push("&capCd=");
                    if (typeof $config.shoppingAtom.yhj_img !== "undefined" && $config.shoppingAtom.yhj_img != null) {
                        __.push($.encode(typeof $config.shoppingAtom.yhj_img === "function" ? $config.shoppingAtom.yhj_img.call($item) : $config.shoppingAtom.yhj_img))
                    }
                    __.push('"></a>        <a class="ver-code-refresh c-i ecard-refresh" href="javascript:void(0);" g-click="setTimeLongStage yhj_img,render"></a>        <a class="binding btn btn-primary btn-sm " g-click="bindECard,setTimeLongStage yhj_img">绑定</a>        <span class="binding-explain">卡密区分大小写</span>         </div>      </div>     </div>     <div class="use-e">      <b>使用美通卡支付</b>      <div  class="e-card-title bb-line">       <i class="chose c-i checkbox_chose" style="visibility: hidden;"></i>       <div class="card-num">卡号</div>       <div class="card-price">面值 </div>          <div class="card-balance">余额</div>       <div class="card-thisuse">本次使用</div>       <div class="card-endtime">有效期 </div>       <div class="card-type">类型</div>      </div>      ');
                    if (typeof (vrbsos.pcs.pcs && vrbsos.pcs.pcs.length > 0) !== "undefined" && (vrbsos.pcs.pcs && vrbsos.pcs.pcs.length > 0) != null && (typeof (vrbsos.pcs.pcs && vrbsos.pcs.pcs.length > 0) === "function" ? (vrbsos.pcs.pcs && vrbsos.pcs.pcs.length > 0).call($item) : vrbsos.pcs.pcs && vrbsos.pcs.pcs.length > 0)) {
                        __.push('       <div class="use-e-wrap">       ');
                        if (typeof vrbsos.pcs.pcs !== "undefined" && vrbsos.pcs.pcs != null) {
                            $.each(typeof vrbsos.pcs.pcs === "function" ? vrbsos.pcs.pcs.call($item) : vrbsos.pcs.pcs, function(i, pcs) {
                                with (this) {
                                    __.push('         <div class="use-e-info ');
                                    if (typeof (pcs.use ? "" : "fontGray") !== "undefined" && (pcs.use ? "" : "fontGray") != null) {
                                        __.push(typeof (pcs.use ? "" : "fontGray") === "function" ? (pcs.use ? "" : "fontGray").call($item) : pcs.use ? "" : "fontGray")
                                    }
                                    __.push('" style="display:block;">         ');
                                    if (typeof pcs.use !== "undefined" && pcs.use != null && (typeof pcs.use === "function" ? pcs.use.call($item) : pcs.use)) {
                                        __.push("          ");
                                        if (typeof (pcs.checked == true) !== "undefined" && pcs.checked == true != null && (typeof (pcs.checked == true) === "function" ? (pcs.checked == true).call($item) : pcs.checked == true)) {
                                            __.push('          <i           g-click="assocPathSelected vrbsos.pcs.pcs.');
                                            if (typeof i !== "undefined" && i != null) {
                                                __.push($.encode(typeof i === "function" ? i.call($item) : i))
                                            }
                                            __.push(' false EC,render"           class="chose c-i checkbox_chose"></i>          ')
                                        } else if (true && true) {
                                            __.push('          <i           g-click="assocPathSelected vrbsos.pcs.pcs.');
                                            if (typeof i !== "undefined" && i != null) {
                                                __.push($.encode(typeof i === "function" ? i.call($item) : i))
                                            }
                                            __.push(' true EC,render"           class="chose c-i checkboxs"></i>          ')
                                        }
                                        __.push("         ")
                                    } else if (true && true) {
                                        __.push('          <i           class="chose c-i no_check" ></i>         ')
                                    }
                                    __.push('          <div class="card-num">');
                                    if (typeof pcs.cardCode !== "undefined" && pcs.cardCode != null) {
                                        __.push($.encode(typeof pcs.cardCode === "function" ? pcs.cardCode.call($item) : pcs.cardCode))
                                    }
                                    __.push('</div>          <div class="card-price">');
                                    if (typeof pcs.totalAmount !== "undefined" && pcs.totalAmount != null) {
                                        __.push($.encode(typeof pcs.totalAmount === "function" ? pcs.totalAmount.call($item) : pcs.totalAmount))
                                    }
                                    __.push('</div>   <!-- ¥ -->          <div class="card-balance">');
                                    if (typeof pcs.remainAmount !== "undefined" && pcs.remainAmount != null) {
                                        __.push($.encode(typeof pcs.remainAmount === "function" ? pcs.remainAmount.call($item) : pcs.remainAmount))
                                    }
                                    __.push('</div>          <div class="card-thisuse">');
                                    if (typeof pcs.usedAmount !== "undefined" && pcs.usedAmount != null) {
                                        __.push($.encode(typeof pcs.usedAmount === "function" ? pcs.usedAmount.call($item) : pcs.usedAmount))
                                    }
                                    __.push('</div>          <div class="card-endtime">');
                                    if (typeof $config.formatLong !== "undefined" && $config.formatLong != null) {
                                        __.push($.encode($config.formatLong(pcs.endDate)))
                                    }
                                    __.push('</div>          <div class="card-type">           ');
                                    if (typeof (pcs.type == "2") !== "undefined" && pcs.type == "2" != null && (typeof (pcs.type == "2") === "function" ? (pcs.type == "2").call($item) : pcs.type == "2")) {
                                        __.push("电子卡")
                                    }
                                    __.push("           ");
                                    if (typeof (pcs.type == "1") !== "undefined" && pcs.type == "1" != null && (typeof (pcs.type == "1") === "function" ? (pcs.type == "1").call($item) : pcs.type == "1")) {
                                        __.push("实体卡")
                                    }
                                    __.push("            </div>         </div>               ")
                                }
                            })
                        }
                        __.push("       </div>      ")
                    }
                    __.push('         </div>     <div class="use-e-summary">      共使用了<span class="red" >');
                    if (typeof vrbsos.pcs.prepaidCardsNum !== "undefined" && vrbsos.pcs.prepaidCardsNum != null) {
                        __.push($.encode(typeof vrbsos.pcs.prepaidCardsNum === "function" ? vrbsos.pcs.prepaidCardsNum.call($item) : vrbsos.pcs.prepaidCardsNum))
                    }
                    __.push('</span> 张美通卡，金额 <span class="red">');
                    if (typeof vrbsos.pcs.prepaidCardsAmount !== "undefined" && vrbsos.pcs.prepaidCardsAmount != null) {
                        __.push($.encode(typeof vrbsos.pcs.prepaidCardsAmount === "function" ? vrbsos.pcs.prepaidCardsAmount.call($item) : vrbsos.pcs.prepaidCardsAmount))
                    }
                    __.push("</span> 元     </div>    </div>   </div>   ")
                }
                __.push("  ")
            }
            __.push("  ");
            if (typeof $config.VBLE.shiyongzhanghuyue !== "undefined" && $config.VBLE.shiyongzhanghuyue != null && $config.VBLE.shiyongzhanghuyue()) {
                __.push('   <div class="chooes-hd clearfix pl38 mb10">    ');
                if (typeof ($config.shoppingAtom.syzhye == "N") !== "undefined" && $config.shoppingAtom.syzhye == "N" != null && (typeof ($config.shoppingAtom.syzhye == "N") === "function" ? ($config.shoppingAtom.syzhye == "N").call($item) : $config.shoppingAtom.syzhye == "N")) {
                    __.push('    <span class="triger fl mr5" g-click="setStage syzhye Y,render"><em class="ii c-i open fl mr5"></em>使用账户余额</span>    ')
                } else if (typeof ($config.shoppingAtom.syzhye == "Y") !== "undefined" && $config.shoppingAtom.syzhye == "Y" != null && (typeof ($config.shoppingAtom.syzhye == "Y") === "function" ? ($config.shoppingAtom.syzhye == "Y").call($item) : $config.shoppingAtom.syzhye == "Y")) {
                    __.push('    <span class="triger fl mr5" g-click="setStage syzhye N,render"><em class="ii c-i close fl mr5"></em>使用账户余额</span>    ')
                }
                __.push("    ");
                if (typeof ($config.shoppingAtom.syzhye == "Y") !== "undefined" && $config.shoppingAtom.syzhye == "Y" != null && (typeof ($config.shoppingAtom.syzhye == "Y") === "function" ? ($config.shoppingAtom.syzhye == "Y").call($item) : $config.shoppingAtom.syzhye == "Y")) {
                    __.push('    <a class="know fr pr30" target="_blank" href="');
                    if (typeof $config.URL.accountbalanceRule !== "undefined" && $config.URL.accountbalanceRule != null) {
                        __.push($.encode(typeof $config.URL.accountbalanceRule === "function" ? $config.URL.accountbalanceRule.call($item) : $config.URL.accountbalanceRule))
                    }
                    __.push('">了解账户余额&nbsp;<span class="jt">&gt;</span></a>    ')
                }
                __.push("   </div>   ");
                if (typeof ($config.shoppingAtom.syzhye == "Y") !== "undefined" && $config.shoppingAtom.syzhye == "Y" != null && (typeof ($config.shoppingAtom.syzhye == "Y") === "function" ? ($config.shoppingAtom.syzhye == "Y").call($item) : $config.shoppingAtom.syzhye == "Y")) {
                    __.push('   <div class="bd1 chooes-bd">    <div class="balance">     ');
                    if (typeof (verifyStatus == "VERIFY_NOT_ACTIVATED") !== "undefined" && verifyStatus == "VERIFY_NOT_ACTIVATED" != null && (typeof (verifyStatus == "VERIFY_NOT_ACTIVATED") === "function" ? (verifyStatus == "VERIFY_NOT_ACTIVATED").call($item) : verifyStatus == "VERIFY_NOT_ACTIVATED")) {
                        __.push("      ");
                        if (typeof $config.errorText.f1 !== "undefined" && $config.errorText.f1 != null) {
                            __.push(typeof $config.errorText.f1 === "function" ? $config.errorText.f1.call($item) : $config.errorText.f1)
                        }
                        __.push("     ")
                    }
                    __.push("      ");
                    if (typeof (vrbsos.va.vase == "FREEZED" || vrbsos.va.payAmount == 0) !== "undefined" && (vrbsos.va.vase == "FREEZED" || vrbsos.va.payAmount == 0) != null && (typeof (vrbsos.va.vase == "FREEZED" || vrbsos.va.payAmount == 0) === "function" ? (vrbsos.va.vase == "FREEZED" || vrbsos.va.payAmount == 0).call($item) : vrbsos.va.vase == "FREEZED" || vrbsos.va.payAmount == 0)) {
                        __.push('     <label class="lb_check fl mr20">      <span class="c-i no_check mr5 fl use inpt2" > </span>      ')
                    } else if (typeof vrbsos.va.selected !== "undefined" && vrbsos.va.selected != null && (typeof vrbsos.va.selected === "function" ? vrbsos.va.selected.call($item) : vrbsos.va.selected)) {
                        __.push('     <label class="lb_check fl mr20" g-click="assocPathSelected vrbsos.va false ZHYE,render">      <span class="c-i checkbox_chose mr5 fl use inpt2" > </span>      ')
                    } else if (true && true) {
                        __.push('     <label class="lb_check fl mr20" g-click="assocPathSelected vrbsos.va true ZHYE,render">      <span class="c-i checkboxs mr5 fl use inpt2" > </span>      ')
                    }
                    __.push('      <span >使用余额：</span><em class="fontRed">¥');
                    if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                        __.push($.encode($config.formatAmount(vrbsos.va.payAmount)))
                    }
                    __.push('</em>     </label>     <span class=" fontGray">账户当前余额为：¥');
                    if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                        __.push($.encode($config.formatAmount(vrbsos.va.virtualAccountBalance)))
                    }
                    __.push("</span>    </div>   </div>   ")
                }
                __.push("  ")
            }
            __.push("   <!-- 使用美豆 -->  ");
            if (typeof $config.VBLE.shiyongMD !== "undefined" && $config.VBLE.shiyongMD != null && $config.VBLE.shiyongMD()) {
                __.push('    <div class="chooes-hd clearfix mb10 pl38">    ');
                if (typeof ($config.shoppingAtom.syjf == "N") !== "undefined" && $config.shoppingAtom.syjf == "N" != null && (typeof ($config.shoppingAtom.syjf == "N") === "function" ? ($config.shoppingAtom.syjf == "N").call($item) : $config.shoppingAtom.syjf == "N")) {
                    __.push('  <!-- 用来刷页面时美豆这一栏是否展开 N：不展开，Y展开 -->    <span class="triger fl mr5" g-click="setStage syjf Y,render"><em class="ii c-i open fl mr5"></em>使用美豆</span>    ')
                } else if (typeof ($config.shoppingAtom.syjf == "Y") !== "undefined" && $config.shoppingAtom.syjf == "Y" != null && (typeof ($config.shoppingAtom.syjf == "Y") === "function" ? ($config.shoppingAtom.syjf == "Y").call($item) : $config.shoppingAtom.syjf == "Y")) {
                    __.push('    <span class="triger fl mr5" g-click="setStage syjf N,render"><em class="ii c-i close fl mr5"></em>使用美豆</span>    ')
                }
                __.push('    <span class="fontGray fl">(国美在线美豆)</span>    ');
                if (typeof ($config.shoppingAtom.syjf == "Y") !== "undefined" && $config.shoppingAtom.syjf == "Y" != null && (typeof ($config.shoppingAtom.syjf == "Y") === "function" ? ($config.shoppingAtom.syjf == "Y").call($item) : $config.shoppingAtom.syjf == "Y")) {
                    __.push('    <a class="know fr pr30 " target="_blank" href="');
                    if (typeof $config.URL.integralRule !== "undefined" && $config.URL.integralRule != null) {
                        __.push($.encode(typeof $config.URL.integralRule === "function" ? $config.URL.integralRule.call($item) : $config.URL.integralRule))
                    }
                    __.push('">了解美豆&nbsp;<span class="jt">&gt;</span></a>    ')
                }
                __.push("   </div>   ");
                if (typeof ($config.shoppingAtom.syjf == "Y") !== "undefined" && $config.shoppingAtom.syjf == "Y" != null && (typeof ($config.shoppingAtom.syjf == "Y") === "function" ? ($config.shoppingAtom.syjf == "Y").call($item) : $config.shoppingAtom.syjf == "Y")) {
                    __.push('   <div class="chooes-bd bd1">    <div class="integral">     <p class="use_jifen">国美在线美豆<!-- &nbsp;&nbsp;<span class="tips fontGray pl20">积分一经使用，暂不支持返还，若订单取消、拒收、退货等均以红券退回（红券有效期30天）。</span> --></p>     ');
                    if (typeof (verifyStatus == "VERIFY_NOT_ACTIVATED") !== "undefined" && verifyStatus == "VERIFY_NOT_ACTIVATED" != null && (typeof (verifyStatus == "VERIFY_NOT_ACTIVATED") === "function" ? (verifyStatus == "VERIFY_NOT_ACTIVATED").call($item) : verifyStatus == "VERIFY_NOT_ACTIVATED")) {
                        __.push("      ");
                        if (typeof $config.errorText.f1 !== "undefined" && $config.errorText.f1 != null) {
                            __.push(typeof $config.errorText.f1 === "function" ? $config.errorText.f1.call($item) : $config.errorText.f1)
                        }
                        __.push("     ")
                    }
                    __.push("      ");
                    if (typeof $config.isDisableSYGMZXMD !== "undefined" && $config.isDisableSYGMZXMD != null && $config.isDisableSYGMZXMD(vrbsos)) {
                        __.push('     <label class="checkbox_out">      <span class="c-i no_check mr5 fl use" > </span>      ')
                    } else if (typeof vrbsos.gd.selected !== "undefined" && vrbsos.gd.selected != null && (typeof vrbsos.gd.selected === "function" ? vrbsos.gd.selected.call($item) : vrbsos.gd.selected)) {
                        __.push('     <label class="checkbox_out" g-click="assocPathSelected vrbsos.gd false ZXMD,render">      <span class="c-i checkbox_chose mr5 fl use" > </span>      ')
                    } else if (true && true) {
                        __.push('     <label class="checkbox_out" g-click="assocPathSelected vrbsos.gd true ZXMD,render">      <span class="c-i checkboxs mr5 fl use" > </span>      ')
                    }
                    __.push('      本次可使用 <em class="fontRed">');
                    if (typeof vrbsos.gd.canUseGomedos !== "undefined" && vrbsos.gd.canUseGomedos != null) {
                        __.push($.encode(typeof vrbsos.gd.canUseGomedos === "function" ? vrbsos.gd.canUseGomedos.call($item) : vrbsos.gd.canUseGomedos))
                    }
                    __.push('</em>美豆<span class="ml20">抵扣<em class="fontRed">');
                    if (typeof $config.formatAmount !== "undefined" && $config.formatAmount != null) {
                        __.push($.encode($config.formatAmount(vrbsos.gd.canUseGomedoAmount)))
                    }
                    __.push('</em>元</span><span class="fontGray ml20">账户当前美豆为');
                    if (typeof vrbsos.gd.totalGomedos !== "undefined" && vrbsos.gd.totalGomedos != null) {
                        __.push($.encode(typeof vrbsos.gd.totalGomedos === "function" ? vrbsos.gd.totalGomedos.call($item) : vrbsos.gd.totalGomedos))
                    }
                    __.push("美豆</span>       ");
                    if (typeof (vrbsos.gd.status == 2) !== "undefined" && vrbsos.gd.status == 2 != null && (typeof (vrbsos.gd.status == 2) === "function" ? (vrbsos.gd.status == 2).call($item) : vrbsos.gd.status == 2)) {
                        __.push('       <span class="fontRed ml20">您的美豆被冻结，解冻请联系客服：4008-708-708</span>      ')
                    }
                    __.push("       ");
                    if (typeof (vrbsos.gd.status == 3) !== "undefined" && vrbsos.gd.status == 3 != null && (typeof (vrbsos.gd.status == 3) === "function" ? (vrbsos.gd.status == 3).call($item) : vrbsos.gd.status == 3)) {
                        __.push('       <span class="fontRed ml20">您已超过当日美豆使用最大限额，请您明日再用</span>      ')
                    }
                    __.push("      </label>         </div>   </div>   ")
                }
                __.push("  ")
            }
            __.push("  ");
            if (typeof $config.VBLE.shiyongtuijianhao !== "undefined" && $config.VBLE.shiyongtuijianhao != null && $config.VBLE.shiyongtuijianhao()) {
                __.push('   <div class="chooes-hd clearfix pl38 mb10">    ');
                if (typeof ($config.shoppingAtom.sytjh == "N") !== "undefined" && $config.shoppingAtom.sytjh == "N" != null && (typeof ($config.shoppingAtom.sytjh == "N") === "function" ? ($config.shoppingAtom.sytjh == "N").call($item) : $config.shoppingAtom.sytjh == "N")) {
                    __.push('    <span class="triger fl mr5" g-click="setStage sytjh Y,render"><em class="ii c-i open fl mr5"></em>使用推荐号</span>    ')
                } else if (typeof ($config.shoppingAtom.sytjh == "Y") !== "undefined" && $config.shoppingAtom.sytjh == "Y" != null && (typeof ($config.shoppingAtom.sytjh == "Y") === "function" ? ($config.shoppingAtom.sytjh == "Y").call($item) : $config.shoppingAtom.sytjh == "Y")) {
                    __.push('    <span class="triger fl mr5" g-click="setStage sytjh N,render"><em class="ii c-i close fl mr5"></em>使用推荐号</span>    ')
                }
                __.push("   </div>   ");
                if (typeof ($config.shoppingAtom.sytjh == "Y") !== "undefined" && $config.shoppingAtom.sytjh == "Y" != null && (typeof ($config.shoppingAtom.sytjh == "Y") === "function" ? ($config.shoppingAtom.sytjh == "Y").call($item) : $config.shoppingAtom.sytjh == "Y")) {
                    __.push('   <div class="bd1 chooes-bd" style="margin-bottom: 15px;">    <div class="yz_mima">     ');
                    if (typeof ($config.shoppingAtom.referrerInfo == null) !== "undefined" && $config.shoppingAtom.referrerInfo == null != null && (typeof ($config.shoppingAtom.referrerInfo == null) === "function" ? ($config.shoppingAtom.referrerInfo == null).call($item) : $config.shoppingAtom.referrerInfo == null)) {
                        __.push('     <div class="clearfix mdtjh pr">      <div class="fl mr20">门店推荐人员工号:</div>      <div class="input-group fl" style="width:230px;">       <input        type="text"        style="width:135px;"        placeholder="编码"        class="       form-control sm r-no-radius       ');
                        if (typeof $config.shoppingAtom.rygh_tip !== "undefined" && $config.shoppingAtom.rygh_tip != null && (typeof $config.shoppingAtom.rygh_tip === "function" ? $config.shoppingAtom.rygh_tip.call($item) : $config.shoppingAtom.rygh_tip)) {
                            __.push("       error       ")
                        }
                        __.push('       "        g-keyup="setValueStage rygh this"        value="');
                        if (typeof $config.shoppingAtom.rygh !== "undefined" && $config.shoppingAtom.rygh != null) {
                            __.push($.encode(typeof $config.shoppingAtom.rygh === "function" ? $config.shoppingAtom.rygh.call($item) : $config.shoppingAtom.rygh))
                        }
                        __.push('">       ');
                        if (typeof $config.isDisabledMD !== "undefined" && $config.isDisabledMD != null && $config.isDisabledMD()) {
                            __.push('        <a        class="btn btn-disabled sm l-no-radius"        href="javascript:void(0)">        确定       </a>       ')
                        } else if (true && true) {
                            __.push('        <a         class="btn btn-primary sm l-no-radius"         href="javascript:void(0)"         g-click="ryghAction">         确定        </a>       ')
                        }
                        __.push('           </div>      <span class="fontRed pabs" style="top:41px;left:146px;">');
                        if (typeof $config.shoppingAtom.rygh_tip !== "undefined" && $config.shoppingAtom.rygh_tip != null) {
                            __.push(typeof $config.shoppingAtom.rygh_tip === "function" ? $config.shoppingAtom.rygh_tip.call($item) : $config.shoppingAtom.rygh_tip)
                        }
                        __.push("</span>     </div>     ")
                    } else if (true && true) {
                        __.push('     <div class="clearfix mdtjh pr">      <div class="fl mr20">门店推荐人员工号:</div>      <div class="fl mr20">');
                        if (typeof $config.shoppingAtom.referrerInfo.employeeId !== "undefined" && $config.shoppingAtom.referrerInfo.employeeId != null) {
                            __.push($.encode(typeof $config.shoppingAtom.referrerInfo.employeeId === "function" ? $config.shoppingAtom.referrerInfo.employeeId.call($item) : $config.shoppingAtom.referrerInfo.employeeId))
                        }
                        __.push('</div>      <div class="fl mr20">');
                        if (typeof $config.shoppingAtom.referrerInfo.employeeName !== "undefined" && $config.shoppingAtom.referrerInfo.employeeName != null) {
                            __.push($.encode(typeof $config.shoppingAtom.referrerInfo.employeeName === "function" ? $config.shoppingAtom.referrerInfo.employeeName.call($item) : $config.shoppingAtom.referrerInfo.employeeName))
                        }
                        __.push('</div>      <div class="fl mr20">');
                        if (typeof $config.shoppingAtom.referrerInfo.structureName !== "undefined" && $config.shoppingAtom.referrerInfo.structureName != null) {
                            __.push($.encode(typeof $config.shoppingAtom.referrerInfo.structureName === "function" ? $config.shoppingAtom.referrerInfo.structureName.call($item) : $config.shoppingAtom.referrerInfo.structureName))
                        }
                        __.push('</div>      <div class="fl mr20"><a href="javascript:void(0)" class="fontBlue ml10" g-click="ryghCanel">取消使用</a></div>     </div>     ')
                    }
                    __.push("    </div>   </div>   ")
                }
                __.push("  ")
            }
            __.push("   </div>  ");
            if (typeof (verifyStatus == "NEED" || verifyStatus == "PASSED" || verifyStatus == "ERRLOCKED") !== "undefined" && (verifyStatus == "NEED" || verifyStatus == "PASSED" || verifyStatus == "ERRLOCKED") != null && (typeof (verifyStatus == "NEED" || verifyStatus == "PASSED" || verifyStatus == "ERRLOCKED") === "function" ? (verifyStatus == "NEED" || verifyStatus == "PASSED" || verifyStatus == "ERRLOCKED").call($item) : verifyStatus == "NEED" || verifyStatus == "PASSED" || verifyStatus == "ERRLOCKED")) {
                __.push('  <div g-pipe>   <div class="yz_mima">    <form class="active-nForm pt10">     ');
                if (typeof (verifyStatus == "NEED") !== "undefined" && verifyStatus == "NEED" != null && (typeof (verifyStatus == "NEED") === "function" ? (verifyStatus == "NEED").call($item) : verifyStatus == "NEED")) {
                    __.push('     <p class="fontGray">为了您的账户安全，需要验证您的支付密码</p>     <div class="clearfix">      <span class="fl">支付密码：</span>      <input       type="password"       style="width:135px;"       class="form-control sm mr5 fl"       g-keyup="setValueStage yzm_pw this"      value="');
                    if (typeof $config.shoppingAtom.yzm_pw !== "undefined" && $config.shoppingAtom.yzm_pw != null) {
                        __.push($.encode(typeof $config.shoppingAtom.yzm_pw === "function" ? $config.shoppingAtom.yzm_pw.call($item) : $config.shoppingAtom.yzm_pw))
                    }
                    __.push('">      <a class="btn btn-primary btn-sm fl" href="javascript:void(0)" g-click="payRegAction,setTimeLongStage yzm_img">确定</a>      <a class="ml10 fl"  target="_blank" href="');
                    if (typeof $config.URL.forgetPassword !== "undefined" && $config.URL.forgetPassword != null) {
                        __.push($.encode(typeof $config.URL.forgetPassword === "function" ? $config.URL.forgetPassword.call($item) : $config.URL.forgetPassword))
                    }
                    __.push('">忘记密码<span class="jt">&gt;</span></a>     </div>     <div style="color:#f00;padding-left:60px;">      ');
                    if (typeof $config.shoppingAtom.yzm_tip !== "undefined" && $config.shoppingAtom.yzm_tip != null) {
                        __.push(typeof $config.shoppingAtom.yzm_tip === "function" ? $config.shoppingAtom.yzm_tip.call($item) : $config.shoppingAtom.yzm_tip)
                    }
                    __.push("     </div>     ")
                }
                __.push("     ");
                if (typeof (verifyStatus == "PASSED") !== "undefined" && verifyStatus == "PASSED" != null && (typeof (verifyStatus == "PASSED") === "function" ? (verifyStatus == "PASSED").call($item) : verifyStatus == "PASSED")) {
                    __.push('     <p class="clearfix"><span class="fl">支付密码已验证</span><em class="c-i correct mt5 ml5 fl"></em></p>     ')
                } else if (typeof (verifyStatus == "ERRLOCKED") !== "undefined" && verifyStatus == "ERRLOCKED" != null && (typeof (verifyStatus == "ERRLOCKED") === "function" ? (verifyStatus == "ERRLOCKED").call($item) : verifyStatus == "ERRLOCKED")) {
                    __.push('     <p class="clearfix"><span class="fl">密码错误5次，已被锁定，将于锁定后24小时解锁</span><em class="c-i warning mt5 ml5 fl"></em></p>     ')
                }
                __.push("    </form>   </div>  </div>  ")
            }
            __.push("")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.comp_gstore = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="gm-store mb10 zi100" click-document-pre>      <p style="font-weight:bold; line-height:30px;">选择支付的国美门店</p>      ');
            if (typeof (noreq == true) !== "undefined" && noreq == true != null && (typeof (noreq == true) === "function" ? (noreq == true).call($item) : noreq == true)) {
                __.push('        <div class="loading"></div>      ')
            } else if (true && true) {
                __.push('       <div class="store-hd clearfix" g-pipe>            <ul class="gmtab">             ');
                if (typeof data.titles !== "undefined" && data.titles != null) {
                    $.each(typeof data.titles === "function" ? data.titles.call($item) : data.titles, function(idx, item) {
                        with (this) {
                            __.push('              <li class="clearfix">               ');
                            if (typeof (idx == data.current) !== "undefined" && idx == data.current != null && (typeof (idx == data.current) === "function" ? (idx == data.current).call($item) : idx == data.current)) {
                                __.push('                <a href="javascript:void(0)" class="hover"  >                             <em >');
                                if (typeof item.name !== "undefined" && item.name != null) {
                                    __.push($.encode(typeof item.name === "function" ? item.name.call($item) : item.name))
                                }
                                __.push('</em>                             <i class="c-i arrowdown_red"></i>                         </a>               ')
                            } else if (true && true) {
                                __.push('                <a href="javascript:void(0)"  g-click="set ');
                                if (typeof idx !== "undefined" && idx != null) {
                                    __.push($.encode(typeof idx === "function" ? idx.call($item) : idx))
                                }
                                __.push(" ");
                                if (typeof item.id !== "undefined" && item.id != null) {
                                    __.push($.encode(typeof item.id === "function" ? item.id.call($item) : item.id))
                                }
                                __.push(',render">                             <em >');
                                if (typeof item.name !== "undefined" && item.name != null) {
                                    __.push($.encode(typeof item.name === "function" ? item.name.call($item) : item.name))
                                }
                                __.push('</em>                             <i class="c-i arrowdown"></i>                         </a>               ')
                            }
                            __.push("              </li>             ")
                        }
                    })
                }
                __.push('                         </ul>       </div>       <div class="gm_area clearfix" g-pipe>           <ul class="area-list">             ');
                if (typeof data.childerns !== "undefined" && data.childerns != null) {
                    $.each(typeof data.childerns === "function" ? data.childerns.call($item) : data.childerns, function(ci, citem) {
                        with (this) {
                            __.push('                <li><a href="javascript:void(0)" g-click="set1 ');
                            if (typeof data.current !== "undefined" && data.current != null) {
                                __.push($.encode(typeof data.current === "function" ? data.current.call($item) : data.current))
                            }
                            __.push(" ");
                            if (typeof citem.id !== "undefined" && citem.id != null) {
                                __.push($.encode(typeof citem.id === "function" ? citem.id.call($item) : citem.id))
                            }
                            __.push(" ");
                            if (typeof ci !== "undefined" && ci != null) {
                                __.push($.encode(typeof ci === "function" ? ci.call($item) : ci))
                            }
                            __.push(',render">');
                            if (typeof citem.name !== "undefined" && citem.name != null) {
                                __.push($.encode(typeof citem.name === "function" ? citem.name.call($item) : citem.name))
                            }
                            __.push("</a></li>             ")
                        }
                    })
                }
                __.push("          </ul>      </div>      ")
            }
            __.push("   </div>")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.comp_alert = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="g-panel box-sd2">   ');
            if (typeof close !== "undefined" && close != null && (typeof close === "function" ? close.call($item) : close)) {
                __.push('   <i class="c-i closebtn-new fr" g-panel-close></i>   ')
            }
            __.push('   <div class="body">    <div class="icon i-block">     <i class="c-i panel-');
            if (typeof type !== "undefined" && type != null) {
                __.push($.encode(typeof type === "function" ? type.call($item) : type))
            }
            __.push('"></i>    </div>    <div class="content i-block">     ');
            if (typeof body !== "undefined" && body != null) {
                __.push(typeof body === "function" ? body.call($item) : body)
            }
            __.push('    </div>    <div class="i-block" style="vertical-align: middle;width:1px;min-height:1px;"></div>   </div>  </div>')
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.comp_biz001 = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="g-panel box-sd2 gpanel-biz001">   <div class="body">    <div class="icon i-block">     <i class="c-i order_waring"></i>    </div>    <div class="content i-block">     <h4>所有说您订单异常要退款的都是大骗子！！！</h4>     <p>当有人以订单异常为由通知您需要退款，就算他有您的各类相关信息，无论他是以电话、短息、QQ、微信、邮件等任何形式通知您，他都是骗子、骗子、大骗子......</p>     <div class="btns">      <a      g-panel-close      href="javascript:void(0)"       class="btn btn-disabled">       知道了，我不会理骗子的！      </a>     </div>    </div>        <div class="foolter">     <b>特别提醒！！！</b>国美在线不会通过电话、短信、QQ、微信、邮件等各类形式以订单异常为由通知您需要退款。此类行为均为诈骗！请认准官方电话 4008-708-708（或010-58851777）    </div>   </div>  </div>')
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
GTPL.comp_confirm = function(data) {
    var $fn = function(jQuery, $item) {
        var $ = jQuery, call, __ = [], $data = $item.data;
        with ($data) {
            __.push('<div class="g-panel box-sd2 confirm">   ');
            if (typeof util.is !== "undefined" && util.is != null && util.is(Function, close)) {
                __.push('    <i class="c-i closebtn-new fr" g-panel-close></i>   ')
            }
            __.push('   <div class="body">    ');
            if (typeof util.is !== "undefined" && util.is != null && util.is(Function, body)) {
                __.push("     ");
                if (typeof body !== "undefined" && body != null) {
                    __.push(body.call($item))
                }
                __.push("    ")
            } else if (true && true) {
                __.push('    <div class="icon i-block">     <i class="c-i panel-');
                if (typeof type !== "undefined" && type != null) {
                    __.push(typeof type === "function" ? type.call($item) : type)
                }
                __.push('"></i>    </div>    <div class="content i-block">     ');
                if (typeof title !== "undefined" && title != null && (typeof title === "function" ? title.call($item) : title)) {
                    __.push("     <h1>");
                    if (typeof title !== "undefined" && title != null) {
                        __.push(typeof title === "function" ? title.call($item) : title)
                    }
                    __.push("</h1>     ")
                }
                __.push("     ");
                if (typeof body !== "undefined" && body != null) {
                    __.push(typeof body === "function" ? body.call($item) : body)
                }
                __.push('    </div>    <div class="i-block" style="vertical-align: middle;width:1px;min-height:1px;"></div>    ')
            }
            __.push("   </div>   ");
            if (typeof (btns.length > 0) !== "undefined" && btns.length > 0 != null && (typeof (btns.length > 0) === "function" ? (btns.length > 0).call($item) : btns.length > 0)) {
                __.push('   <div class="btns">    ');
                if (typeof btns !== "undefined" && btns != null) {
                    $.each(typeof btns === "function" ? btns.call($item) : btns, function($index, $value) {
                        with (this) {
                            __.push('     <a     g-btn-path="btns,');
                            if (typeof $index !== "undefined" && $index != null) {
                                __.push($.encode(typeof $index === "function" ? $index.call($item) : $index))
                            }
                            __.push('"      href="javascript:void(0)"      class="');
                            if (typeof clazz !== "undefined" && clazz != null) {
                                __.push($.encode(typeof clazz === "function" ? clazz.call($item) : clazz))
                            }
                            __.push('">      ');
                            if (typeof btnName !== "undefined" && btnName != null) {
                                __.push(typeof btnName === "function" ? btnName.call($item) : btnName)
                            }
                            __.push("     </a>    ")
                        }
                    })
                }
                __.push("   </div>   ")
            }
            __.push("  </div>")
        }
        return __
    };
    return $fn($, {data: data || {}}).join("")
};
!function(n, t, e, i) {
    function a(n) {
        n.title = n.title || false;
        var e = $.gDialog({html: i.comp_confirm(n), zIndex: 1e4, modal: {zIndex: 1e3}});
        e.show();
        var a = e.$dialog;
        a.find("[g-btn-path]").on("click", function() {
            var i = $(this).attr("g-btn-path");
            var a = t.pipe(t.split(","), t.concat(t.__, ["click"]), t.path(t.__, n));
            var c = a(i);
            return c(e)
        });
        a.find("[g-panel-close]").on("click", function() {
            n.close(e)
        });
        return e
    }
    function c(n, e) {
        var a = t.ifn(t.is(Object), t.identity, t.always({type: g.WARN, content: n}))(n);
        var c = $.gDialog({html: i.comp_alert({close: true, type: a.type, body: a.content}), zIndex: 1e4, modal: {zIndex: 1e3}});
        c.show();
        c.$dialog.find("[g-panel-close]").on("click", function() {
            return e(c)
        })
    }
    function o(n) {
        return c(n, e.hide)
    }
    function l(n) {
        return o({type: g.ERROR, content: n})
    }
    function r(n) {
        return o({type: g.SUCCESS, content: n})
    }
    function s(n, e, i, c) {
        var o = false;
        if (t.is(Object, e)) {
            o = e.title;
            e = e.body
        }
        return a({type: n, title: o, body: e, btns: [{clazz: "btn btn-primary", btnName: "确定", click: i}, {clazz: "btn btn-default", btnName: "取消", click: c}], close: c})
    }
    var u = t.curry(s);
    var f = null;
    var d = false;
    var m = null;
    var p = 0;
    var b = 200;
    function v() {
    }
    function y() {
    }
    var g = {ERROR: "error", WARN: "warn", SUCCESS: "success"};
    function h() {
        var n = $.gDialog({html: i.comp_biz001({}), zIndex: 1e4, modal: {zIndex: 1e3}});
        n.show();
        setTimeout(function() {
            n.$dialog.find("[g-panel-close]").removeClass("btn-disabled").addClass("btn-primary").on("click", function() {
                n.hide()
            })
        }, 5e3)
    }
    n.panel = {confirm: a, alertClose: c, TYPE: g, alert: o, error: l, success: r, mask: y, maskHide: v, confirmOKCanelType: u, confirmOKCanel: u(g.WARN), confirmOk: u(g.WARN, t.__, t.__, e.hide), biz001: h}
}(this, util, util_ui, GTPL);
(function(n, r, e, i, t, u, c) {
    var a = null;
    function s(n) {
        return n("div")
    }
    function f(n) {
        return n("data")
    }
    function l(n, r) {
        var e = t.find(t.pipe(t.prop("id"), t.eq(f(n).provice)), r);
        return e
    }
    function o(n, r) {
        var e = t.find(t.pipe(t.prop("id"), t.eq(f(n).city)), r.childerns);
        return e
    }
    function d(n, r) {
        var e = t.find(t.pipe(t.prop("id"), t.eq(f(n).area)), r.childerns);
        return e
    }
    function p(n, r) {
        var e = t.find(t.pipe(t.prop("id"), t.eq(f(n).store)), r.childerns);
        return e
    }
    function h(n, r) {
        if (n < r)
            return n;
        return r
    }
    function m(n, r) {
        function e(n) {
            if (n == 0)
                return r;
            if (n == 1)
                return t.childerns;
            if (n == 2)
                return c.childerns;
            if (n == 3)
                return a.childerns
        }
        var i = [];
        var t = l(n, r);
        var u = f(n).current;
        if (t == null) {
            i.push({name: "请选择"});
            return{current: h(0, u), titles: i, childerns: e(h(0, u))}
        }
        i.push({name: t.name, id: t.id});
        var c = o(n, t);
        if (c == null) {
            i.push({name: "请选择"});
            return{current: h(1, u), titles: i, childerns: e(h(1, u))}
        }
        i.push({name: c.name, id: c.id});
        var a = d(n, c);
        if (a == null) {
            i.push({name: "请选择"});
            return{current: h(2, u), titles: i, childerns: e(h(2, u))}
        }
        i.push({name: a.name, id: a.id});
        var s = p(n, a);
        if (s == null) {
            i.push({name: "请选择"});
            return{current: h(3, u), titles: i, childerns: e(h(3, u))}
        }
        i.push({name: s.name, id: s.id});
        return{current: h(3, u), titles: i, childerns: e(h(3, u))}
    }
    function v(n) {
        s(n).html(c.comp_gstore({noreq: true}));
        a().then(function(r) {
            q(n, r)
        })
    }
    function q(n, r) {
        var e = m(n, r.data);
        s(n).html(c.comp_gstore({data: e, noreq: false}));
        var i = {0: "provice", 1: "city", 2: "area", 3: "store"};
        function t(r, e) {
            f(n)[i[r]] = e;
            f(n).current = r - 0
        }
        function a(r, t, u) {
            f(n)[i[r]] = t;
            f(n).current = r - 0 + 1;
            if (r == "0") {
                if (t == "11000000") {
                    a("1", "11010000", "0")
                } else if (t == "21000000") {
                    a("1", "21010000", "0")
                } else if (t == "74000000") {
                    a("1", "74010000", "0")
                } else if (t == "12000000") {
                    a("1", "12010000", "0")
                }
            }
            if (r == "3")
                f(n).selectfn(e.childerns[u])
        }
        function l() {
            q(n, r)
        }
        u.gpipes(s(n), {set: t, set1: a, render: l})
    }
    function g(n, r) {
        if (a == null)
            a = e.cachePromise(e.reqp, "/home/api/payment/getStoreList");
        function i(e) {
            return{div: n, data: r}[e]
        }
        v(i);
        return i
    }
    n.gstore = {make: t.curry(g)}
})(this, $, request, $page, util, util_ui, GTPL);
(function(e, t, r) {
    function n(e) {
        return function(t) {
            t.html('<span class="nError nRed animated flash">' + e + "</span>").show();
            return false
        }
    }
    function u(e) {
        return function(t) {
            t(e);
            return false
        }
    }
    var i = r.curry(function(e, t) {
        return t.length > e
    });
    var a = r.curry(function(e, t) {
        return t.length < e
    });
    function p(e) {
        if (e == null)
            return true;
        if (e == "")
            return true;
        if (r.head(e) == " ")
            return p(r.tail(e));
        return false
    }
    function s(e) {
        return!/^[\u4E00-\u9FFF|0-9|a-z|A-Z|\(|\)|（|）|\s]+$/.test(e)
    }
    function f(e) {
        return!/^[0-9|A-Z]+$/.test(e)
    }
    function l(e) {
        return e.length
    }
    function o(e) {
        return!e
    }
    function c(e) {
        return r.pipe(l, r.eq(e), o)
    }
    function d(e) {
        return r.pipe(l, r.eq(e))
    }
    function h(e) {
        return!/^[0-9]+$/.test(e)
    }
    function z(e) {
        var t = /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/;
        if (t.test(e)) {
            if (e.length == 18) {
                var r = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2);
                var n = new Array(1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2);
                var u = 0;
                for (var i = 0; i < 17; i++) {
                    u += e.substring(i, i + 1) * r[i]
                }
                var a = u % 11;
                var p = e.substring(17);
                if (a == 2) {
                    if (p == "X" || p == "x") {
                        return true
                    } else {
                        return false
                    }
                } else {
                    if (p == n[a]) {
                        return true
                    } else {
                        return false
                    }
                }
            }
        } else {
            return false
        }
    }
    function v(e) {
        return!/^[\u4E00-\u9FFF|0-9\-|a-z|A-Z|\s|#\{\}\(\)\[\],\.。，（）｛｝【】\|]+$/.test(e)
    }
    function g(e) {
        return!/^[\u4E00-\u9FFF]+$/.test(e)
    }
    function m(e) {
        return!/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(e)
    }
    function q(e) {
        if (e == "13")
            return true;
        if (e == "14")
            return true;
        if (e == "15")
            return true;
        if (e == "17")
            return true;
        if (e == "18")
            return true;
        return false
    }
    var x = {consignee: [[p, u("请输入收货人姓名")], [s, u("请输入正确的收货人姓名格式")], [i(10), u("请输入正确的收货人姓名格式")]], address: [[p, u("请选择所在地")]], detailAddress: [[p, u("请填写详细地址")], [a(2), u("请填写更详细的地址")], [i(100), u("详细地址为100个字符以内")], [v, u("输入格式不正确")]], "phone-call": [[r.all(p), u("请输入电话号码")]], phone: [[p, r.T], [r.pipe(l, r.eq(11), o), u("请输入正确的手机号码")], [h, u("请输入正确的手机号码")], [r.pipe(r.take(2), q, o), u("请输入正确的手机号码")]], "mtk-phone": [[p, u("请输入手机号")], [r.pipe(l, r.eq(11), o), u("请输入正确的手机号码")], [h, u("请输入正确的手机号码")], [r.pipe(r.take(2), q, o), u("请输入正确的手机号码")]], call: [[p, r.T], [h, u("请输入正确的电话号码")], [a(10), u(" 固定电话号码不能低于10位")], [i(18), u(" 固定电话号码不能大于18位")]], email: [[p, r.T], [m, u("请输入正确的电子邮箱")]], fptt: [[p, u("请输入抬头内容")], [s, u("抬头内容输入格式不正确")], [i(50), u("抬头为50个字符以内")]], spsj: [[p, u("请输入手机号码")], [r.pipe(l, r.eq(11), o), u("请输入正确的手机号码")], [h, u("请输入正确的手机号码")], [r.pipe(r.take(2), q, o), u("请输入正确的手机号码")]], spyx: [[p, r.T], [m, u("请输入正确的邮箱")]], gfsh: [[p, r.T], [f, u("购方税号为数字和大写英文字母")], [r.anyPass([d(15), d(18), d(20)]), r.T], [r.T, u("购方税号为15位、18位、20位数字和大写英文字母")]], zpsjr: [[p, u("请输入增票收件人")], [s, u("收件人输入格式不正确")], [i(20), u("收件人名称最多20个字符（数字、英文、汉字各占一个字符）")]], zpsjhm: [[p, u("请输入手机号码")], [r.pipe(l, r.eq(11), o), u("请输入正确的手机号码")], [h, u("请输入正确的手机号码")], [r.pipe(r.take(1), r.eq("1"), o), u("请输入正确的手机号码")]], zzshr: [[p, u("请输入收货人姓名")], [s, u("请输入正确的收货人姓名格式")], [i(10), u("请输入正确的收货人姓名格式")]], zzxxdz: [[p, u("请填写详细地址")], [a(2), u("请填写更详细的地址")], [i(100), u("详细地址为100个字符以内")], [v, u("输入格式不正确")]], zzsjhm: [[p, u("请输入手机号码")], [r.pipe(l, r.eq(11), o), u("请输入正确的手机号码")], [h, u("请输入正确的手机号码")], [r.pipe(r.take(1), r.eq("1"), o), u("请输入正确的手机号码")]], zzgddh: [[p, r.T], [h, u("请输入正确的电话号码")], [a(10), u(" 固定电话号码不能低于10位")], [i(18), u(" 固定电话号码不能大于18位")]], zzyj: [[p, r.T], [m, u("请输入正确的邮箱")]], zpyjdz: [[p, u("请输入邮寄地址")], [a(2), u("请填写更详细的地址")], [i(100), u("详细地址最多100个字符")], [v, u("输入格式不正确")]], mdhyjf: [[r.pipe(r.prop("txt"), p), u("请输入门店会员积分")], [r.pipe(r.prop("txt"), parseFloat, r.gte(0)), u("请输入正确的门店积分")], [r.pipe(r.prop("txt"), h), u("请输入整数")], [r.pipe(r.juxt([r.pipe(r.prop("txt"), parseInt), r.pipe(r.prop("max"), parseInt)]), r.apply(r.lte), o), u("门店会员积分不能大于本次最多可使用积分")]], "hwg-name": [[r.anyPass([p, a(2), i(20), g]), u("请您填写真实姓名")]], "hwg-card": [[p, u("请输入正确的身份号")], [r.pipe(z, o), u("请输入正确的身份号")]], "presell-phone": [[p, u("请输入手机号码")], [r.pipe(l, r.eq(11), o), u("请输入正确的手机号码")], [h, u("请输入正确的手机号码")], [r.pipe(r.take(2), q, o), u("请输入正确的手机号码")]]};
    function y(e, t, n) {
        if (r.is(Function, n))
            n("");
        else
            n.html("").hide();
        var u = r.head(e);
        if (u == null)
            return true;
        if (r.head(u)(t)) {
            return r.last(u)(n)
        }
        return y(r.tail(e), t, n)
    }
    function A(e) {
        function t(e) {
            return y(x[e[1]], r.head(e), r.last(e))
        }
        return r.pipe(r.map(t), r.all(r.eq(true)))(e)
    }
    function F(e, t, r) {
        return A([[t, e, r]])
    }
    e.validate = {validate: A, validateItem: F, vacond: y}
})(this, $, util);
(function(t) {
    t.fn.gCity = function(c) {
        var i = function(t, c) {
            this.cache = {snam: "", sid: "", cnam: "", cid: "", xnam: "", xid: "", znam: "", zid: "", chtm: ""};
            this.adress = "11011400|北京北京市东城区东城区|11010000|11000000|110114001";
            this.province = {11000000: "北京", 12000000: "天津", 13000000: "河北省", 14000000: "山西省", 15000000: "内蒙古", 21000000: "上海", 22000000: "浙江省", 23000000: "江苏省", 24000000: "安徽省", 25000000: "福建省", 26000000: "山东省", 31000000: "广东省", 32000000: "广西", 33000000: "海南省", 41000000: "湖北省", 42000000: "湖南省", 43000000: "河南省", 44000000: "江西省", 51000000: "黑龙江省", 52000000: "吉林省", 53000000: "辽宁省", 61000000: "宁夏", 62000000: "新疆", 63000000: "青海省", 64000000: "陕西省", 65000000: "甘肃省", 71000000: "四川省", 72000000: "云南省", 73000000: "贵州省", 74000000: "重庆市", 75000000: "西藏", 81000000: "台湾省", 82000000: "香港", 83000000: "澳门", 84000000: "钓鱼岛"};
            this.city = {11000000: {11010000: "北京市"}, 12000000: {12010000: "天津市"}, 13000000: {13010000: "保定市", 13020000: "沧州市", 13030000: "承德市", 13040000: "邯郸市", 13050000: "衡水市", 13060000: "廊坊市", 13070000: "秦皇岛市", 13080000: "石家庄市", 13090000: "唐山市", 13100000: "邢台市", 13110000: "张家口市", 13990000: "河北省其他城市"}, 14000000: {14010000: "长治市", 14020000: "大同市", 14030000: "晋城市", 14040000: "晋中市", 14050000: "临汾市", 14060000: "吕梁市", 14070000: "朔州市", 14080000: "太原市", 14090000: "忻州市", 14100000: "阳泉市", 14110000: "运城市", 14990000: "山西省其他城市"}, 15000000: {15010000: "阿拉善盟", 15020000: "巴彦淖尔市", 15030000: "包头市", 15040000: "赤峰市", 15050000: "鄂尔多斯市", 15060000: "呼和浩特市", 15070000: "呼伦贝尔市", 15080000: "通辽市", 15090000: "乌海市", 15100000: "乌兰察布市", 15110000: "锡林郭勒盟", 15120000: "兴安盟", 15990000: "内蒙古其他城市"}, 21000000: {21010000: "上海市"}, 22000000: {22010000: "杭州市", 22020000: "湖州市", 22030000: "嘉兴市", 22040000: "金华市", 22050000: "丽水市", 22060000: "宁波市", 22070000: "衢州市", 22080000: "绍兴市", 22090000: "台州市", 22100000: "温州市", 22110000: "舟山市", 22990000: "浙江省其他城市"}, 23000000: {23010000: "南京市", 23020000: "淮安市", 23030000: "连云港市", 23040000: "常州市", 23050000: "南通市", 23060000: "苏州市", 23070000: "宿迁市", 23080000: "泰州市", 23090000: "无锡市", 23100000: "徐州市", 23110000: "盐城市", 23120000: "扬州市", 23130000: "镇江市", 23990000: "江苏省其他城市"}, 24000000: {24010000: "合肥市", 24020000: "安庆市", 24030000: "蚌埠市", 24040000: "亳州市", 24060000: "池州市", 24070000: "滁州市", 24080000: "阜阳市", 24090000: "淮北市", 24100000: "淮南市", 24110000: "黄山市", 24120000: "六安市", 24130000: "马鞍山市", 24140000: "宿州市", 24150000: "铜陵市", 24160000: "芜湖市", 24170000: "宣城市", 24990000: "安徽省其他城市"}, 25000000: {25010000: "福州市", 25020000: "龙岩市", 25030000: "南平市", 25040000: "宁德市", 25050000: "莆田市", 25060000: "泉州市", 25070000: "三明市", 25080000: "厦门市", 25090000: "漳州市", 25990000: "福建省其他城市"}, 26000000: {26010000: "滨州市", 26020000: "德州市", 26030000: "东营市", 26040000: "菏泽市", 26050000: "济南市", 26060000: "济宁市", 26070000: "莱芜市", 26080000: "聊城市", 26090000: "临沂市", 26100000: "青岛市", 26110000: "日照市", 26120000: "泰安市", 26130000: "威海市", 26140000: "潍坊市", 26150000: "烟台市", 26160000: "枣庄市", 26170000: "淄博市", 26990000: "山东省其他城市"}, 31000000: {31010000: "广州市", 31020000: "深圳市", 31030000: "潮州市", 31040000: "河源市", 31050000: "惠州市", 31060000: "江门市", 31070000: "揭阳市", 31080000: "茂名市", 31090000: "梅州市", 31100000: "清远市", 31110000: "汕头市", 31120000: "汕尾市", 31130000: "韶关市", 31140000: "阳江市", 31150000: "云浮市", 31160000: "湛江市", 31170000: "肇庆市", 31180000: "珠海市", 31190000: "东莞市", 31200000: "中山市", 31210000: "佛山市", 31990000: "广东省其他城市"}, 32000000: {32010000: "桂林市", 32020000: "百色市", 32030000: "北海市", 32040000: "崇左市", 32050000: "防城港市", 32060000: "贵港市", 32070000: "河池市", 32080000: "贺州市", 32090000: "来宾市", 32100000: "柳州市", 32110000: "南宁市", 32120000: "钦州市", 32130000: "梧州市", 32140000: "玉林市", 32990000: "广西省其他城市"}, 33000000: {33010000: "海口市", 33020000: "白沙县", 33030000: "保亭县", 33040000: "昌江县", 33050000: "澄迈县", 33060000: "儋州市", 33070000: "定安县", 33080000: "东方市", 33090000: "乐东县", 33100000: "临高县", 33110000: "陵水县", 33130000: "琼海市", 33140000: "琼中县", 33150000: "屯昌县", 33160000: "万宁市", 33170000: "文昌市", 33180000: "五指山市", 33210000: "三亚市", 33220000: "三沙市", 33990000: "海南省其他城市"}, 41000000: {41010000: "武汉市", 41020000: "鄂州市", 41030000: "恩施州", 41040000: "黄冈市", 41050000: "黄石市", 41060000: "荆门市", 41070000: "荆州市", 41080000: "十堰市", 41090000: "随州市", 41100000: "咸宁市", 41110000: "襄阳市", 41120000: "孝感市", 41130000: "宜昌市", 41140000: "仙桃市", 41150000: "潜江市", 41160000: "天门市", 41170000: "神农架林区", 41990000: "湖北省其他城市"}, 42000000: {42010000: "长沙市", 42020000: "常德市", 42030000: "郴州市", 42040000: "衡阳市", 42050000: "怀化市", 42060000: "娄底市", 42070000: "邵阳市", 42080000: "湘潭市", 42090000: "湘西州", 42100000: "益阳市", 42110000: "永州市", 42120000: "岳阳市", 42130000: "张家界市", 42140000: "株洲市", 42990000: "湖南省其他城市"}, 43000000: {43010000: "郑州市", 43020000: "安阳市", 43030000: "鹤壁市", 43040000: "焦作市", 43050000: "开封市", 43060000: "洛阳市", 43070000: "漯河市", 43080000: "南阳市", 43090000: "平顶山市", 43100000: "濮阳市", 43110000: "三门峡市", 43120000: "商丘市", 43130000: "新乡市", 43140000: "信阳市", 43150000: "许昌市", 43160000: "周口市", 43170000: "驻马店市", 43180000: "济源市", 43990000: "河南省其他城市"}, 44000000: {44010000: "南昌市", 44020000: "抚州市", 44030000: "赣州市", 44040000: "吉安市", 44050000: "景德镇市", 44060000: "九江市", 44070000: "萍乡市", 44080000: "上饶市", 44090000: "新余市", 44100000: "宜春市", 44110000: "鹰潭市", 44990000: "江西省其他城市"}, 51000000: {51010000: "哈尔滨市", 51020000: "大庆市", 51030000: "大兴安岭", 51040000: "鹤岗市", 51050000: "黑河市", 51060000: "鸡西市", 51070000: "佳木斯市", 51080000: "牡丹江市", 51090000: "七台河市", 51100000: "齐齐哈尔市", 51110000: "双鸭山市", 51120000: "绥化市", 51130000: "伊春市", 51990000: "黑龙江省其他城市"}, 52000000: {52010000: "长春市", 52020000: "白城市", 52030000: "白山市", 52040000: "吉林市", 52050000: "辽源市", 52060000: "四平市", 52070000: "松原市", 52080000: "通化市", 52090000: "延边州", 52990000: "吉林省其他城市"}, 53000000: {53010000: "沈阳市", 53020000: "鞍山市", 53030000: "本溪市", 53040000: "朝阳市", 53050000: "大连市", 53060000: "丹东市", 53070000: "抚顺市", 53080000: "阜新市", 53090000: "葫芦岛市", 53100000: "锦州市", 53110000: "辽阳市", 53120000: "盘锦市", 53130000: "铁岭市", 53140000: "营口市", 53990000: "辽宁省其他城市"}, 61000000: {61010000: "固原市", 61020000: "石嘴山市", 61030000: "吴忠市", 61040000: "中卫市", 61050000: "银川市", 61990000: "宁夏其他城市"}, 62000000: {62010000: "乌鲁木齐市", 62020000: "阿克苏地区", 62030000: "阿勒泰地区", 62040000: "巴音郭楞州", 62050000: "博尔塔拉州", 62060000: "昌吉州", 62070000: "哈密地区", 62080000: "和田地区", 62090000: "喀什地区", 62100000: "克拉玛依市", 62110000: "克孜州", 62120000: "塔城地区", 62130000: "吐鲁番地区", 62140000: "伊犁州", 62150000: "石河子市", 62160000: "阿拉尔市", 62170000: "图木舒克市", 62180000: "五家渠市", 62990000: "新疆省其他城市"}, 63000000: {63010000: "西宁市", 63020000: "果洛州", 63030000: "海北州", 63040000: "海东地区", 63050000: "海南州", 63060000: "海西州", 63070000: "黄南州", 63080000: "玉树州", 63990000: "青海省其他城市"}, 64000000: {64010000: "西安市", 64020000: "安康市", 64030000: "宝鸡市", 64040000: "汉中市", 64050000: "商洛市", 64060000: "铜川市", 64070000: "渭南市", 64080000: "咸阳市", 64090000: "延安市", 64100000: "榆林市", 64990000: "陕西省其他城市"}, 65000000: {65010000: "兰州市", 65020000: "白银市", 65030000: "定西市", 65040000: "甘南州", 65050000: "嘉峪关市", 65060000: "金昌市", 65070000: "酒泉市", 65080000: "临夏州", 65090000: "陇南市", 65100000: "平凉市", 65110000: "庆阳市", 65120000: "天水市", 65130000: "张掖市", 65140000: "武威市", 65990000: "甘肃省其他城市"}, 71000000: {71010000: "成都市", 71020000: "阿坝州", 71030000: "巴中市", 71040000: "达州市", 71050000: "德阳市", 71060000: "甘孜州", 71070000: "广元市", 71080000: "乐山市", 71090000: "凉山州", 71100000: "泸州市", 71110000: "眉山市", 71120000: "绵阳市", 71130000: "内江市", 71140000: "南充市", 71150000: "攀枝花市", 71160000: "遂宁市", 71170000: "雅安市", 71180000: "宜宾市", 71190000: "资阳市", 71200000: "自贡市", 71210000: "广安市", 71990000: "四川省其他城市"}, 72000000: {72010000: "昆明市", 72020000: "保山市", 72030000: "楚雄州", 72040000: "大理州", 72050000: "德宏州", 72060000: "迪庆州", 72070000: "红河州", 72080000: "丽江市", 72090000: "临沧市", 72100000: "怒江州", 72110000: "曲靖市", 72120000: "普洱市", 72130000: "文山州", 72140000: "西双版纳州", 72150000: "玉溪市", 72160000: "昭通市", 72990000: "云南省其他城市"}, 73000000: {73010000: "贵阳市", 73020000: "安顺市", 73030000: "毕节市", 73040000: "六盘水市", 73050000: "黔东南州", 73060000: "黔南州", 73070000: "黔西南州", 73080000: "铜仁市", 73090000: "遵义市", 73990000: "贵州省其他城市"}, 74000000: {74010000: "重庆市"}, 75000000: {75010000: "拉萨市", 75020000: "阿里地区", 75030000: "昌都地区", 75040000: "林芝地区", 75050000: "那曲地区", 75060000: "日喀则地区", 75070000: "山南地区", 75990000: "西藏其他城市"}, 81000000: {81010000: "台湾省"}, 82000000: {82010000: "香港"}, 83000000: {83010000: "澳门"}, 84000000: {84010000: "钓鱼岛"}};
            this.opt = c;
            this.singleCity = {11000000: "11010000", 12000000: "12010000", 21000000: "21010000", 74000000: "74010000"};
            this.obj = t;
            this.init()
        };
        i.prototype = {init: function() {
                var t = this;
                t.winClose();
                t.obj.click(function() {
                    t.bindEvent();
                    t.obj.addClass("gctCur").parent().addClass("cityShow");
                    if (t.opt.gc_new)
                        t.opcity(1);
                    t.winType(true)
                });
                t.autoProvince()
            }, autoProvince: function() {
                var t = this, c = {};
                t.cityModel(t.province)
            }, bindEvent: function() {
                var c = this;
                t(c.opt.gc_shw).unbind("click").click(function(t) {
                    t.preventDefault();
                    c.cityClick(c.getEvent(t))
                })
            }, cityModel: function(c) {
                var i = this.opt.gc_dat || t.cookie("atgregion");
                i = i || this.adress;
                i = i.split("|");
                if (i.length != 5 || i[4] == "undefined")
                    i[4] = i[0] + "1";
                this.cache.sid = i[3];
                this.cache.cid = i[2];
                this.cache.xid = i[0];
                this.cache.zid = i[4];
                this.cityDom(c, 2, 1)
            }, cityDom: function(c, i, a) {
                var e = c.citys || c;
                if (a == 1) {
                    this.createProvince(e, i)
                } else {
                    this.createOthers(e, a, i)
                }
                if (!this.opt.gc_inp && e.length <= 1 && i == 4)
                    this.inpcity();
                if (this.opt.gc_inp && i == 4) {
                    this.opt.gc_inp = false;
                    this.citySlect();
                    this.cache.chtm = this.fmtAddress();
                    if (this.opt.gc_ads)
                        t(this.opt.gc_aid).html(this.cache[this.opt.gc_ads]).attr("title", this.cache[this.opt.gc_ads]);
                    if (this.opt.gc_autofn)
                        this.opt.gc_autofn.apply(this.cache)
                }
                this.bindEvent()
            }, checkData: function(t) {
                try {
                    var c = t.result.division, i = c[0].code + c[0].label;
                    return true
                } catch (a) {
                    if (window.console) {
                        console.log("响应数据异常\r\n" + a)
                    }
                    return false
                }
            }, createProvince: function(c, i) {
                var a = this, e = "";
                t.each(c, function(t, c) {
                    var s = t, n = c, h = "";
                    e += a.createSpan(h, n, s, s + "," + i + ",1")
                });
                a.cityHtm(e)
            }, createOthers: function(c, i, a) {
                var e = this, s = "", n = "", h = "", r = c;
                if (a != 2) {
                    if (!this.checkData(c))
                        return false;
                    c = c.result.division
                }
                t.each(c, function(t, c) {
                    var i = c.code ? c.code : t, r = c.label ? c.label : c, o = c.relationCode || null, d = "";
                    n = i;
                    h = r;
                    if (i == e.cache.cid) {
                        e.cache.cnam = r
                    }
                    if (i == e.cache.xid && !o || i != e.cache.xid && o && o == e.cache.xid) {
                        e.cache.xid = i;
                        e.cache.xnam = e.fmt(r)
                    }
                    if (e.cache.zid && e.cache.zid != "" && i == e.cache.zid) {
                        e.cache.znam = e.fmt(r)
                    }
                    s += e.createSpan(d, r, i, i + "," + (parseInt(a) + 1) + "," + a, o)
                });
                t("#ctbox_" + a).html(s);
                var o = 0;
                if (a == 2) {
                    o = e.cache.sid;
                    if (e.opt.gc_inp)
                        e.autoAjax(e.cache.cid, parseInt(a) + 1, a);
                    if (!e.opt.gc_inp && c.length <= 1) {
                        e.cache.cid = n;
                        e.autoAjax(e.cache.cid, parseInt(a) + 1, a)
                    }
                }
                if (a == 3) {
                    o = e.cache.cid;
                    if (e.opt.gc_inp)
                        e.autoAjax(e.cache.xid, parseInt(a) + 1, a)
                }
                if (a == 4) {
                    o = e.cache.xid;
                    if (c.length <= 1) {
                        e.cache.zid = n;
                        e.cache.znam = h
                    }
                }
                e.obj.data("data" + o, r)
            }, autoAjax: function(t, c, i) {
                var a = this;
                window.setTimeout(function() {
                    a.cityajax(t, c, i)
                }, 1)
            }, createSpan: function(t, c, i, a, e) {
                if (e)
                    e = 'data-rid="' + e + '"';
                return'<span><a href="javascript:;" ' + t + ' title="' + c + '" id="ct' + i + '" data-val="' + a + '" ' + (e ? e : "") + ">" + c + "</a></span>"
            }, citySlect: function() {
                t("#pct_1").find("b").html(this.cache.snam);
                t("#pct_2").find("b").html(this.cache.cnam);
                t("#pct_3").find("b").html(this.cache.xnam);
                t("#pct_4").find("b").html(this.cache.znam);
                if (this.cache.xnam == "" || this.cache.xnam == undefined) {
                    var c = this;
                    c.opt.gc_dat = c.adress;
                    c.opt.gc_inp = true;
                    window.setTimeout(function() {
                        c.init()
                    }, 1);
                    return false
                }
            }, cityHtm: function(c) {
                var i = this.opt.gc_css, a = "";
                if (this.opt.gc_slt) {
                    a = '<div id="citySelect" class="gctSelect clearfix">				<a href="javascript:;" id="pct_1" data-val="1" data-lnk><b></b><i></i></a>				<a href="javascript:;" id="pct_2" data-val="2" data-lnk><b></b><i></i></a>				<a href="javascript:;" id="pct_3" data-val="3" data-lnk><b></b><i></i></a>				<a href="javascript:;" id="pct_4" data-val="4" data-lnk class="cur"><b></b><i></i></a>				<a href="javascript:;" id="cityClose" class="close"></a></div>'
                }
                var e = '<div id="cityMBox">				<div class="' + i + '" id="ctbox_1">' + c + '</div>				<div class="' + i + '" id="ctbox_2"></div>				<div class="' + i + '" id="ctbox_3"></div>				<div class="' + i + '" id="ctbox_4"></div></div>';
                t(this.opt.gc_shw).html(a + e);
                this.autoAjax(this.cache.sid, 2, 1)
            }, cityClick: function(c) {
                var i = t(c), a = i.parent(), e = this, s = true;
                if (a.attr("data-lnk") || a.attr("data-lnk") == "") {
                    s = false
                } else {
                    if (i.attr("data-lnk") || i.attr("data-lnk") == "") {
                        s = false
                    }
                }
                if (a.parent().hasClass("gctBox"))
                    a.parent().find("a").removeClass("select");
                if (s) {
                    if (i.attr("id") && i.attr("id") == "cityClose") {
                        e.closeCity();
                        return false
                    }
                    var n = i.attr("data-val"), h = 1;
                    if (n != undefined) {
                        t(e.opt.gc_shw).unbind("click");
                        n = n.split(",");
                        h = n[2];
                        var r = n[0], o = e.fmt(t("#ct" + r).html());
                        if (h == 1) {
                            e.cache.snam = o;
                            e.cache.sid = r;
                            e.setLoading("#ctbox_2,#ctbox_3,#ctbox_4", n);
                            if (this.getPropertyCount(this.city[r]) == 1) {
                                this.cityClick(t("#ct" + this.singleCity[r]))
                            }
                        }
                        if (h == 2) {
                            e.cache.cnam = o;
                            e.cache.cid = r;
                            e.setLoading("#ctbox_3,#ctbox_4", n)
                        }
                        if (h == 3) {
                            e.cache.xnam = o;
                            e.cache.xid = r;
                            e.setLoading("#ctbox_4", n)
                        }
                        if (h == 4) {
                            e.cache.znam = o;
                            e.cache.zid = r;
                            e.inpcity()
                        }
                    }
                } else {
                    var d = i.attr("data-val");
                    if (d == undefined) {
                        e.opcity(i.parent().attr("data-val"))
                    } else {
                        e.opcity(d)
                    }
                }
                e.winType(true)
            }, setLoading: function(c, i) {
                t(c).html("加载中...");
                this.cityajax(i[0], i[1], i[2])
            }, getPropertyCount: function(t) {
                var c, i = 0;
                for (c in t) {
                    if (t.hasOwnProperty(c)) {
                        i++
                    }
                }
                return i
            }, winClose: function() {
                var c = this;
                t("body:first").click(function(i) {
                    var a = t(c.opt.gc_shw).attr("cityType");
                    if (a == "true") {
                        var e = t(c.getEvent(i)), s = e.attr("id");
                        if (!e.attr("cityType") && !e.parent().attr("cityType") && !e.parent().parent().attr("cityType") && !e.parent().parent().parent().attr("cityType") && !e.parent().parent().parent().parent().attr("cityType") && s != "stockaddress" && s != "address" && e.parent().attr("id") != "address") {
                            c.winType(false);
                            c.closeCity()
                        }
                    } else {
                        c.closeCity()
                    }
                })
            }, winType: function(c) {
                t(this.opt.gc_shw).attr("cityType", "" + c)
            }, cityajax: function(c, i, a) {
                var e = "", s = 0;
                this.opcity(i);
                if (a == 1) {
                    this.setDataClk("#pct_2", true);
                    this.setDataClk("#pct_3,#pct_4", false);
                    e = t("#ct" + this.cache.sid).html();
                    s = this.cache.sid;
                    this.cache.snam = e
                }
                if (a == 2) {
                    this.setDataClk("#pct_3", true);
                    this.setDataClk("#pct_4", false);
                    e = t("#ct" + this.cache.cid).html();
                    s = this.cache.cid;
                    this.cache.cnam = e
                }
                if (a == 3) {
                    this.setDataClk("#pct_4", true);
                    e = this.fmt(t("#ct" + this.cache.xid).html());
                    s = this.cache.xid;
                    this.cache.xnam = e
                }
                if (a == 4) {
                    e = this.fmt(t("#ct" + this.cache.zid).html());
                    this.cache.znam = e
                }
                t("#pct_" + a).find("b").html(e);
                if (s != 0)
                    this.getDataCache(s, i, c)
            }, fmt: function(t) {
                if (t)
                    return t.replace("*", "")
            }, fmtAddress: function() {
                try {
                    return this.cache.snam + this.cache.cnam.replace(this.cache.snam, "") + this.cache.xnam.replace(this.cache.cnam, "").replace(this.cache.snam, "") + this.cache.znam.replace(this.cache.cnam, "").replace(this.cache.snam, "")
                } catch (t) {
                    return""
                }
            }, setDataClk: function(c, i) {
                if (!this.opt.gc_inp) {
                    if (i) {
                        t(c).attr("data-clk", i).find("b").html("请选择")
                    } else {
                        t(c).hide().attr("data-clk", i).find("b").html("请选择")
                    }
                }
            }, getDataCache: function(t, c, i) {
                if (this.obj.data("data" + t)) {
                    this.cityDom(this.obj.data("data" + t), c, t);
                    return false
                } else {
                    var e = "", s = {citycode: i, levelid: c};
                    if (c == 2) {
                        this.cityDom(this.city[i], c, i)
                    } else if (c == 3) {
                        e = a + s.citycode + "/3/flag/item_web/gcity_callbackarea";
                        this.getDataAjax(i, c, e)
                    } else {
                        e = a + s.citycode + "/4/flag/item_web/gcity_callbackarea";
                        this.getDataAjax(i, c, e)
                    }
                }
            }, getDataAjax: function(c, i, a) {
                var e = this;
                t.ajax({type: "get", url: a, cache: true, dataType: "jsonp", data: {}, jsonpName: "gcity_callbackarea", success: function(t) {
                        e.cityDom(t, i, c)
                    }})
            }, inpcity: function() {
                var c = this, i = "";
                c.cache.chtm = c.fmtAddress();
                i = c.cache.chtm;
                if (c.opt.gc_ads) {
                    i = c.cache[c.opt.gc_ads]
                }
                t("#pct_4").find("b").html(c.cache.znam);
                t(c.opt.gc_aid).html(i).attr("title", i);
                c.closeCity();
                if (c.opt.gc_evt) {
                    var a = c.cache.xid;
                    if (t("#ct" + c.cache.zid).attr("data-rid"))
                        a = t("#ct" + c.cache.zid).attr("data-rid");
                    c.opt.gc_evt.apply(t.extend({}, c.cache, {xid: a}))
                }
            }, opcity: function(c) {
                for (var i = 1; i < 5; i++) {
                    if (i == c) {
                        t("#ctbox_" + i).show();
                        t("#pct_" + i).addClass("cur").show()
                    } else {
                        t("#ctbox_" + i).hide();
                        t("#pct_" + i).removeAttr("class")
                    }
                }
            }, getEvent: function(t) {
                t = t || window.event;
                return t.target || t.srcElement
            }, closeCity: function() {
                this.obj.removeClass("gctCur").parent().removeClass("cityShow")
            }};
        var a = "http://ss" + (cookieDomain || "") + "/item/v1/region/";
        var e = {gc_dat: null, gc_css: "gctBox", gc_shw: ".gCity", gc_aid: "#stockaddress", gc_ads: null, gc_inp: true, gc_upd: true, gc_slt: true, gc_new: false, gc_autofn: null, gc_group: false, gc_groupID: false, gc_evt: null}, c = t.extend(e, c);
        this.each(function() {
            new i(t(this), c)
        })
    }
})(jQuery);
!function(n, t, i, r, e, a) {
    var u = "7entityCard7";
    var l = r.emit(u);
    function d(n) {
        return n("div")
    }
    function f(n) {
        return n("data")
    }
    var o = t.curry(function(n, t) {
        n(null, t);
        return n
    });
    function v(n) {
        d(n).find("#diqye-mbile").trigger("blur");
        return a.validateItem("mtk-phone", d(n).find("#diqye-mbile").val(), function() {
        })
    }
    function c(n) {
        d(n).html(e.entity_card_main({sm: f(n)}));
        var t = null;
        d(n).find("#diqye-mbile").on("blur", function() {
            var n = $(this).val();
            var t = $(this).parent("div");
            function i(n) {
                if (n) {
                    t.addClass("error");
                    t.find(".errfix").html(n)
                } else {
                    t.removeClass("error")
                }
            }
            if (!a.validateItem("mtk-phone", n, i)) {
                return false
            }
            l("savePhone", {phone: n})
        })
    }
    function m(n, t) {
        function i(i, r) {
            if (r)
                t = r;
            return{div: n, data: t}[i]
        }
        c(i);
        return i
    }
    n.entityCard = {make: t.curry(m), TYPE: u, validatefn: v}
}(this, util, util_ui, util_watch, GTPL, validate);
!function(i, a, t, n, o) {
    var r = "7authorization7";
    var d = n.emit(r);
    function u(i) {
        return i("div")
    }
    function l(i) {
        return i("data")
    }
    var e = a.curry(function(i, a) {
        i(null, a);
        return i
    });
    function v(i) {
        return!l(i).authorized
    }
    function f(i) {
        return l(i).idCardNumber == null || l(i).idCardNumber == ""
    }
    function c(i) {
        if (f(i)) {
            return h(i)
        }
        u(i).html(o.authorization_main(l(i)));
        u(i).find("#modify").on("click", a.partial(h, [i]))
    }
    function h(i) {
        var n = $.gDialog({html: o.authorization_modify(a.assoc("notAuth", f, {im: i, data: l(i)})), modal: {}});
        n.show();
        function r(i, t) {
            return function(n) {
                function o() {
                    i.hide();
                    t.removeClass("error")
                }
                function r(a) {
                    t.addClass("error");
                    i.html('<span style="color:#f00;">' + a + "</span>");
                    i.show()
                }
                return a.ifn(a.isEmpty, o, r)(n)
            }
        }
        n.$dialog.find("[no-modify]").one("mousedown", function() {
            $(this).removeAttr("no-modify").val("")
        });
        n.$dialog.find("[g-validate]").blur(function() {
            var i = $(this).attr("g-validate");
            var a = n.$dialog.find("[g-tip-validate=" + i + "]");
            var t = n.$dialog.find("[g-validate=" + i + "]");
            var o = $(this).val() || $(this).attr("value");
            var d = [[o, i, r(a, t)]];
            validate.validate(d)
        });
        function u() {
            n.hide()
        }
        function e() {
            var i = [];
            n.$dialog.find("[g-validate]").each(function() {
                var a = $(this).attr("g-validate");
                var t = n.$dialog.find("[g-tip-validate=" + a + "]");
                var o = n.$dialog.find("[g-validate=" + a + "]");
                var d = $(this).val() || $(this).attr("value");
                if ($(this).attr("no-modify") != "y") {
                    i.push([d, a, r(t, o)])
                }
            });
            if (validate.validate(i)) {
                d("saveAction", {name: n.$dialog.find("[g-validate=hwg-name]").val(), card: n.$dialog.find("[g-validate=hwg-card]").val()});
                u()
            }
        }
        t.gpipes(n.$dialog, {dialogHide: u, saveAction: e})
    }
    function g(i, a) {
        function t(t, n) {
            if (n)
                a = n;
            return{div: i, data: a}[t]
        }
        c(t);
        return t
    }
    i.authorization = {make: a.curry(g), notAuth: f, notAuthorization: v, TYPE: r}
}(this, util, util_ui, util_watch, GTPL);
!function(i, e, t, a, n, d, s, r) {
    var o = "7address7";
    var l = a.emit(o);
    function c(i) {
        return i("data")
    }
    function f(i) {
        return i("div")
    }
    function u(i, e) {
        g(i, e);
        function t(t) {
            return{div: i, data: e}[t]
        }
        l("renderEnd", t);
        return t
    }
    function p(i) {
        $config.shoppingAddressAtom.scrollY = 0
    }
    function v(i) {
        $config.shoppingAddressAtom.scrollY = i.find("#address_scroll_div").scrollTop()
    }
    function h(i) {
        i.find("#address_scroll_div").scrollTop($config.shoppingAddressAtom.scrollY)
    }
    function g(i, a) {
        if (a.open) {
            var n = e.find(e.prop("selected"), a.list) || {};
            n.close = false;
            n.type = "noAddress";
            x(i, n)
        }
        if (window.location.hash == "#ksg") {
            a.isShowksg = true
        }
        i.html(s.address_main(a));
        lastdata = a;
        h(i);
        i.find("#address_scroll_div").scroll(function() {
            v(i)
        });
        i.find("[g-hover-up]").each(function() {
            $(this).hover(A("[g-hover]"), w("[g-hover]"))
        });
        i.find("#id_newAddress_btn").click(e.partial(x, [i, {close: true, type: "new", data: a}]));
        i.find("[g-more-path]").on("click", function() {
            var e = $(this);
            var t = e.attr("g-value");
            $config.shoppingAddressAtom.more = t;
            g(i, a)
        });
        i.find("[g-sbtn-path]").on("click", function() {
            var t = $(this);
            var n = t.attr("g-sbtn-path").split(",");
            function d(i) {
                var t = e.path(n, i);
                l("selected", t);
                return e.map(function(i) {
                    if (i == t)
                        return e.assoc("selected", true, i);
                    return e.assoc("selected", false, i)
                }, i.list)
            }
            g(i, e.pipe(e.assoc("list", d(a)))(a))
        });
        i.find("[g-default-path]").on("click", t.jqpipe(t.attr("g-default-path"), e.split(","), e.converge(C, [e.path(e.__, a), e.always(a)]), e.partial(g, [i])));
        i.find("[g-delete-path]").on("click", t.jqpipe(t.attr("g-delete-path"), e.split(","), e.path(e.__, a), b));
        i.find("[g-modify-path]").on("click", t.jqpipe(t.attr("g-modify-path"), e.split(","), e.path(e.__, a), e.assoc("type", "modify"), e.assoc("close", true), e.partial(x, [i])))
    }
    var m = e.curry(function(i, a) {
        return t.jq(e.pipe(t.find(i), a))
    });
    function _(i) {
        return t.jqpipe(t.find("em"), t.addClass(i))
    }
    function y(i) {
        return t.jqpipe(t.find("em"), t.removeClass(i))
    }
    function k(i, e) {
        return t.jqpipe(t.find("b"), t.addClass(i), t.removeClass(e))
    }
    var A = m(e.__, t.show);
    var w = m(e.__, t.hide);
    function C(i, t) {
        l("setDefaultAddress", i);
        function a(i) {
            return i.isdefault
        }
        function n(i) {
            return e.map(e.ifn(e.eq(i), e.assoc("isdefault", true), e.assoc("isdefault", false)))
        }
        function d(i) {
            return e.concat(e.filter(a, i), e.reject(a, i))
        }
        return e.assoc("list", e.pipe(n(i), d)(t.list), t)
    }
    function b(i) {
        d.confirmOk({title: "删除地址?", body: "您确定要删除该收货地址吗？"}, function(e) {
            e.hide();
            l("removeAddress", i)
        })
    }
    function j(i) {
        var t = c(i);
        return e.find(e.prop("selected"), t.list)
    }
    function q(i) {
        var t = j(i);
        t = e.assoc("close", true, t);
        t = e.assoc("type", "modify", t);
        return x(f(i), t)
    }
    function x(i, a) {
        if (a.type == "new") {
            if (a.data.list.length >= 20) {
                d.confirmOk($config.notice.addressConfirm, function(e) {
                    a.type = "confirm-new";
                    e.hide();
                    return x(i, a)
                });
                return
            }
        }
        var n = $.gDialog({html: s.address_new(a), modal: {}});
        n.show();
        t.gpipes(n.$dialog, {});
        var o = e.pipe(t.removeClass("checkbox_chose"), t.addClass("checkboxs"), t.setAttr("value", "0"));
        var c = e.pipe(t.removeClass("checkboxs"), t.addClass("checkbox_chose"), t.setAttr("value", "1"));
        var f = t.jq(e.ifn(t.is(".checkbox_chose"), o, c));
        $("#id_newAddress [name=defaultAddress]").click(f);
        function u(i, t, a) {
            function n() {
                t.hide();
                a.removeClass("error")
            }
            function d(i) {
                a.addClass("error");
                t.html('<span style="color:#f00;">' + i + "</span>");
                t.show()
            }
            return e.ifn(e.isEmpty, n, d)(i)
        }
        if (a.type == "modify") {
            n.$dialog.find("input[g-validate=phone]").one("focus", function() {
                $(this).val("").attr("m", "true")
            })
        }
        n.$dialog.find("[g-validate]").blur(function() {
            var i = $(this).attr("g-validate");
            var e = n.$dialog.find("[g-tip-validate=" + i + "]");
            var t = n.$dialog.find("[g-validate=" + i + "]");
            var a = $(this).val() || $(this).attr("value");
            function d(i) {
                return u(i, e, t)
            }
            var s = [[a, i, d]];
            if (i == "phone" || i == "call") {
                var o = [n.$dialog.find("[name=phone]").val(), n.$dialog.find("[name=call]").val()];
                s.push([o, "phone-call", function(i) {
                        var e = n.$dialog.find("[g-validate=phone-call]");
                        var t = n.$dialog.find("[g-tip-validate=phone-call]");
                        return u(i, t, e)
                    }])
            }
            r.validate(s)
        });
        $("#id_saveAddress").on("click", function() {
            var i = [];
            function d(i) {
                if (a.type == "modify") {
                    if (i.attr("m") != "true") {
                        return"17090114267"
                    }
                }
                return i.val()
            }
            n.$dialog.find("[g-validate]").each(function() {
                var e = $(this).attr("g-validate");
                var t = n.$dialog.find("[g-tip-validate=" + e + "]");
                var a = n.$dialog.find("[g-validate=" + e + "]");
                var s = $(this).val() || $(this).attr("value");
                if (e == "phone") {
                    s = d(a)
                }
                function r(i) {
                    return u(i, t, a)
                }
                if (e == "phone-call") {
                    var o = n.$dialog.find("[name=phone]");
                    var s = [d(o), n.$dialog.find("[name=call]").val()]
                }
                i.push([s, e, r])
            });
            if (r.validate(i)) {
                var s = t.searForm($("#id_newAddress"));
                if (a.type == "modify") {
                    l("updateAddress", e.assoc("id", a.origin.owerId, s))
                } else {
                    l("newAddress", s)
                }
                n.hide()
            }
        });
        var p = t.cbk(n, t.hide);
        $("#closeaddress").click(p);
        var v = function(i) {
            if (i.type != "modify")
                return null;
            return[i.origin.address.countyCode, i.origin.address.provinceName + i.origin.address.cityName + i.origin.address.countyName + i.origin.address.townName, i.origin.address.cityCode, i.origin.address.provinceCode, i.origin.address.townCode].join("|")
        }(a);
        $("#id_address_select").gCity({gc_dat: v, gc_ads: "chtm", gc_evt: function() {
                var i = this.sid + "." + this.cid + "." + this.xid + "." + this.zid;
                $("#id_address_select").find("[name=address]").attr("value", i);
                $("#id_address_select").find("[show-label]").html(this.chtm);
                $("#id_address_select").find(".add_out,.gCity").hide();
                n.$dialog.find("[g-tip-validate=address]").html("")
            }});
        t.hoverUpBySelector($("#id_address_select"), ".add_out,.gCity");
        n.$dialog.find("[g-area-close]").on("click", function() {
            n.$dialog.find(".add_out,.gCity").hide()
        })
    }
    function E(i) {
        return!e.isEmpty(c(i).list)
    }
    i.address = {make: e.curry(u), TYPE: o, modify: q, selectedAddress: j, notPupup: E}
}(this, util, util_ui, util_watch, request, panel, GTPL, validate);
!function(e, n, t, i, r, o, a, l) {
    var s = "7payment7";
    var c = r.emit(s);
    function p(e) {
        return e("div")
    }
    function d(e) {
        return e("data")
    }
    var f = t.curry(function(e, n) {
        e(null, n);
        return e
    });
    function m(e) {
        var n = p(e);
        var t = d(e);
        n.html(o.payment_main(t));
        h(e)
    }
    function u(e) {
        var n = {mailRemittance: {label: "邮局汇款", desc: "线下邮局汇款后1-3个工作日内到账", name: "查看账户信息", href: "http://help.gome.com.cn/article/236-0-0.html"}, storesPayment: {label: "门店付款", desc: "网站下单后，在国美门店付款，支持现金、pos机刷卡", name: "查看门店支付", href: "http://help.gome.com.cn/article/235-0-0.html"}, onlinePayment: {label: "在线支付", desc: "即时到帐，支持大部分储蓄卡及信用卡，第三方支付平台", name: "查看全部银行及限额", href: "http://help.gome.com.cn/article/233-0-0.html"}, installment: {label: "信用卡分期", desc: "用信用卡分期支付，按月还款，减轻资金周转压力", name: "查看分期付款帮助", href: "http://help.gome.com.cn/article/234-0-0.html"}, companyTransfer: {label: "公司转账", desc: "通过公司转账后1-3个工作日内到账", name: "查看账户信息", href: "http://help.gome.com.cn/article/237-0-0.html"}, cashOnDelivery: {label: "货到付款", desc: "送货上门后再收款，支持现金、POS机刷卡", name: " 查看运费及配送范围", href: "http://help.gome.com.cn/article/232-0-0.html"}};
        return{list: t.map(function(e) {
                return t.assoc("tip", n[e.c], e)
            }, e), presellModifyStatus: "done"}
    }
    function h(e) {
        var n = p(e);
        var r = d(e);
        p(e).find("[hoverup]").each(i.jq(i.hoverUpBySelector(t.__, "[hover]")));
        p(e).find("[g-hoverup-tip]").each(i.jq(function(n) {
            var t = n.attr("g-hoverup-tip");
            var r = "[g-hover-tip=" + t + "]";
            i.hoverUp(n.add(r))(p(e).find(r))
        }));
        p(e).find("[code=storesPayment]").on("click", function() {
            var i = t.find(t.pipe(t.prop("c"), t.eq("storesPayment")), d(e).list);
            a.make(n.find("#mendianfukuan_store"), {provice: i.a.provinceCode, city: i.a.cityCode, area: i.a.countyCode, store: i.ps && i.ps.code, current: 3, selectfn: function(e) {
                    e.code = "storesPayment";
                    c("savePaymentStore", e)
                }});
            n.find("#mendianfukuan_tip").show();
            return false
        });
        p(e).find("[g-close]").on("click", t.partial(i.hide, [n.find("#mendianfukuan_tip")]));
        n.find("[g-path]").on("click", i.jqpipe(i.attr("g-path"), t.split(","), t.path(t.__, r.list), function(n) {
            c("savePayment", n);
            return t.map(function(e) {
                if (n == e)
                    return t.assoc("selected", true, e);
                return t.assoc("selected", false, e)
            }, d(e).list)
        }, u, f(e), m));
        p(e).find("[no-modify]").one("mousedown", function() {
            $(this).removeAttr("no-modify").val("");
            p(e).find("[presell-btn-phone]").removeClass("btn-primary").addClass("btn-disabled")
        });
        p(e).find("[presell-modify-phone]").on("click", function() {
            f(e, t.assoc("presellModifyStatus", "modify", d(e)));
            c("renderCommitOrder", null);
            m(e)
        });
        p(e).find("[presell-canel-phone]").on("click", function() {
            f(e, t.assoc("presellModifyStatus", "done", d(e)));
            m(e);
            c("renderCommitOrder", null)
        });
        function o(n) {
            p(e).find("[presell-error-phone]").html(n)
        }
        p(e).find("[presell-text-phone]").on("keyup", function() {
            var n = $(this).val();
            if (l.validateItem("presell-phone", n, o)) {
                p(e).find("[presell-btn-phone]").removeClass("btn-disabled").addClass("btn-primary")
            } else {
                p(e).find("[presell-btn-phone]").removeClass("btn-primary").addClass("btn-disabled")
            }
        });
        p(e).find("[presell-btn-phone]").on("click", function() {
            var n = p(e).find("[presell-text-phone]").val();
            if (p(e).find("[presell-text-phone]").attr("no-modify") == "y" || l.validateItem("presell-phone", n, o)) {
                c("saveTailPhone", {phone: n, shopNo: $config.shoppingAtom.deliveryPreSell.shopNo, shippingGroupId: $config.shoppingAtom.deliveryPreSell.shippingGroupId})
            }
        })
    }
    function v(e) {
        return d(e).presellModifyStatus == "done"
    }
    function y(e) {
        var n = d(e);
        return t.find(function(e) {
            return e.c == "onlinePayment" && e.selected
        }, n.list)
    }
    function b(e, n) {
        function t(t, i) {
            if (i)
                n = i;
            return{div: e, data: n}[t]
        }
        m(t);
        return t
    }
    e.payment = {make: t.curry(b), isTailPhoneStatusDone: v, transData: u, isUseOnline: y, TYPE: s}
}(this, request, util, util_ui, util_watch, GTPL, gstore, validate);
!function(e, t, n, i, r, o) {
    var s = "7listOfItem7";
    var a = {getPickingUpStores: null};
    var c = r.emit(s);
    function p(e) {
        return e("div")
    }
    function l(e) {
        return e("data")
    }
    function u(e) {
        function t(e) {
            var t = e.yd.split(" ")[0].split("-");
            return{label: e.label, md: t[1] + "-" + t[2]}
        }
        function i(e) {
            var i = [{label: "时间段"}];
            i = n.concat(i, n.map(t, e.concrete));
            var r = [];
            for (var o = 0; o < e.concrete[0].items.length; o++)
                r.push(o);
            function s(t) {
                return n.concat([e.concrete[0].items[t]], n.map(function(e) {
                    return e.items[t]
                }, e.concrete))
            }
            var a = n.map(s, r);
            return{head: i, body: n.map(n.zipWith(n.assoc("head"), i), a), code: "XSD", postBackCode: e.postBackCode, type: e.type}
        }
        function r(e) {
            if (e.code == "XSD")
                return i(e);
            return e
        }
        function o(e) {
            return n.assoc("times", n.map(r, e.times), e)
        }
        function s(e) {
            if (e.payments == null) {
                e.payments = []
            }
            if (e.payments.length != 0)
                return n.assoc("payments", [{code: "SOME_UP", selected: true}], e);
            return e
        }
        var a = n.head(e.shoppinginfo);
        var c = n.tail(e.shoppinginfo);
        var p = n.concat([o(a)], n.pipe(n.map(s), n.map(o))(c));
        function l(e) {
            function t(e) {
                return n.assoc("express", n.map(n.assoc("shippingFee", null), e.express), e)
            }
            if (e.shopId == "GOME") {
                return n.assoc("shoppinginfo", n.map(t, e.shoppinginfo), e)
            }
            return e
        }
        function u(e) {
            if (e !== "GOME")
                return false;
            if ($page.site == "home")
                return true;
            return false
        }
        return n.pipe(n.assoc("shoppinginfo", p), l, n.assoc("selectedfn", n.find(n.prop("selected"))), n.assoc("xsdSelectedTime", f), n.assoc("visibleCorrespondItems", u))(e)
    }
    function f(e) {
        var t = n.find(n.prop("selected"));
        var i = n.reduce(function(e, i) {
            if (e)
                return e;
            var r = t(n.tail(i));
            if (r)
                return r;
            return null
        }, null, e.body);
        if (i) {
            return i.head.md + "(" + i.head.label + ") " + $config.formathhmm(i.startTime) + " " + $config.formathhmm(i.endTime)
        }
        return""
    }
    var d = n.curry(function(e, t) {
        e("data", t);
        return e
    });
    var h = n.curry(function(e, t) {
        var i = n.path(t, e);
        var r = n.take(3, t);
        var o = n.map(n.ifn(n.eq(i), n.assoc("selected", true), n.assoc("selected", false)));
        var s = n.pipe(n.path(r), o);
        if (i.code == "Gome Picking Up") {
            c("selectPickingUp", {shop: e, selectedExpress: i})
        } else {
            c("selectExpress", {shop: e, selectedExpress: i})
        }
        return n.assocPath(r, s(e), e)
    });
    function m(e, t) {
        function i(t) {
            return function(n) {
                return e(t, n)
            }
        }
        function r(e) {
            return n.concat([n.head(e)], n.map(i("XSD"), n.tail(e)))
        }
        function o(e) {
            if (e.code == "DAY") {
                return n.assoc("items", n.map(i("DAY"), e.items), e)
            }
            if (e.code == "XSD") {
                return n.assoc("body", n.map(r, e.body), e)
            }
            return i(e.code)(e)
        }
        return n.map(o, t)
    }
    function g(e, t, i, r) {
        var o = n.path(r, e);
        var s = n.path(i, e);
        var a = true;
        function p(e, t) {
            if (o.code == "XSD" && e == "XSD") {
                if (t.available && a) {
                    a = false;
                    o = t;
                    return n.assoc("selected", true, t)
                } else {
                    return n.assoc("selected", false, t)
                }
            } else {
                if (t == o)
                    return n.assoc("selected", true, t);
                return n.assoc("selected", false, t)
            }
        }
        var l = m(p, n.path(t, e));
        c("selectTime", {shop: e, stime: s, sitem: o});
        return n.assocPath(t, l, e)
    }
    function v(e) {
        p(e).html(o.listOfItem_method(l(e)));
        k(e)
    }
    function k(e) {
        i.gpipes(p(e), {changeComment: r});
        p(e).find("[map-item]").each(function() {
            var e = $(this);
            i.hoverUp(e.find("[hoverup-1],[hover-1]"))(e.find("[hover-1]"))
        });
        var t = null;
        function r(r, o) {
            if (r.val().length > 30) {
                o.show();
                r.addClass("error");
                return
            }
            r.removeClass("error");
            o.hide();
            d(e, n.assoc("comments", r.val(), l(e)));
            t = i.delay(1e3, function() {
                c("saveComments", {shop: l(e), cm: r.val()})
            }, null, t)
        }
        p(e).find("[g-e-path]").on("click", i.jqpipe(i.attr("g-e-path"), n.split(","), h(l(e)), d(e), v));
        p(e).find("[g-p-path]").on("click", i.jqpipe(i.attr("g-p-path"), n.split(","), n.path(n.__, l(e)), s));
        function s(e) {
            function t() {
                return o.listOfItem_method_payment(e)
            }
            var r = panel.confirm({body: t, close: i.hide, btns: []});
            r.$dialog.find("[g-list-save]").on("click", function() {
                c("savePayment", n.find(n.prop("selected"), e));
                i.hide(r)
            });
            r.$dialog.find("[g-list-canel]").on("click", function() {
                i.hide(r)
            });
            r.$dialog.find("[idx]").on("click", function() {
                r.hide();
                var t = $(this).attr("idx");
                var i = n.map(n.assoc("selected", false), e);
                s(n.assocPath([t, "selected"], true, i))
            })
        }
        p(e).find("[hoverup]").each(i.jq(i.hoverUpBySelector(n.__, "[hover]")));
        p(e).find("[g-t-path]").on("click", function() {
            var t = $(this);
            var i = t.attr("g-t-path").split(",");
            var r = n.take(4, i);
            var o = n.take(3, i);
            var s = l(e);
            n.pipe(g, d(e), v)(s, o, r, i)
        });
        p(e).find("[g-picking-up]").on("click", function() {
            var t = $(this).attr("g-picking-up").split(",");
            var i = n.pipe(n.path(t), n.find(n.prop("selected")));
            var r = i(l(e));
            a.getPickingUpStores(r.city).then(function(t) {
                if (t.success == false)
                    return panel.alert(t.errMsg);
                function i(e) {
                    function t(e) {
                        return n.assoc("gomeStoreShippings", n.filter(n.pipe(n.prop("enabled"), n.eq("1")), e.gomeStoreShippings), e)
                    }
                    return n.map(t, e)
                }
                S(e, {pickingUP: r, list: i(t.data)})
            })
        })
    }
    function S(e, t) {
        var i = t.pickingUP.storeId;
        function r(e) {
            if (e.gomeStoreShippings)
                return n.find(n.pipe(n.prop("gomeStoreId"), n.eq(i)), e.gomeStoreShippings);
            return false
        }
        function s(e) {
            return e.gomeStoreId == i
        }
        function a(e) {
            var t = n.find(r, e);
            return t == null ? e[0] : t
        }
        t.selectedArea = a;
        t.isSelectArea = r;
        var p = $.gDialog({html: o.listOfItem_pickingUp(t), modal: {}});
        p.show();
        var u = p.$dialog;
        function f(e, t) {
            t = t || {};
            t.isSelectStore = s;
            e.find("#store-content").html(o.listOfItem_pickingUp_stores(t));
            e.find("[store-idx]").on("click", function() {
                var n = $(this).attr("store-idx");
                var r = t.gomeStoreShippings[n];
                i = r.gomeStoreId;
                f(e, t)
            })
        }
        f(u, a(t.list));
        u.find("[g-select]").on("click", function() {
            u.find("[g-select-body]").toggle();
            return false
        });
        u.on("click", function() {
            u.find("[g-select-body]").hide()
        });
        u.find("[s-idx]").on("click", function() {
            var e = $(this).attr("s-idx");
            f(u, t.list[e]);
            u.find("[g-title]").html($(this).html())
        });
        u.find("#pks-saveStore").on("click", function() {
            c("selectPickingUp", {shop: l(e), selectedExpress: {code: "Gome Picking Up", storeId: i}});
            p.hide()
        });
        u.find("[g-close]").on("click", function() {
            p.hide()
        })
    }
    function y(e, t) {
        t = u(t);
        function n(i, r) {
            if (i == "div")
                return e;
            if (r != null) {
                t = r;
                return n
            }
            if (i == "data")
                return t
        }
        v(n);
        return n
    }
    e.listOfItemMethod = {make: y, TYPE: s, $$: a}
}(this, request, util, util_ui, util_watch, GTPL);
!function(t, i, n, u, r, e) {
    var f = "7listOfItem7";
    function a(t) {
        return t("div")
    }
    function l(t) {
        return t("data")
    }
    function c(t, i, u) {
        var r = l(u);
        var e = n.assocPath(t, i, r);
        u(null, e);
        return u
    }
    function s(t) {
        t("div").html(e.listOfItem_items(l(t)));
        o(t)
    }
    function o(t) {
        u.gpipes(a(t), {gjaz: i});
        function i(i, n, u) {
            r.emit(f, "gjaz", i);
            var e = c(n.split("."), u, t);
            s(e)
        }}
    function m(t, i) {
        function n(u, r) {
            if (u == "div")
                return t;
            if (r != null) {
                i = r;
                return n
            }
            if (u == "data")
                return i
        }
        s(n);
        return n
    }
    t.listOfItemItems = {make: m, TYPE: f}
}(this, request, util, util_ui, util_watch, GTPL);
!function(t, n, r, i, e, u, f, o) {
    var a = "7listOfItem7";
    function c(t) {
        return t(0)
    }
    function p(t) {
        return t(1)
    }
    function m(t, n) {
        return r.path(t, p(n))
    }
    function s(t) {
        function n(t, n) {
            return r.concats(r.map(t, n))
        }
        var i = r.curry(function(t, n, i) {
            return r.assoc(t, r.map(n, i[t]), i)
        });
        function e(i) {
            return r.find(function(t) {
                return t.itemId == i
            }, n(function(t) {
                return n(r.path(["items"]), t.allItems)
            }, t))
        }
        return r.map(i("shoppinginfo", i("items", e)), t)
    }
    function l(t) {
        c(t).html(u.listOfItem_main(p(t)));
        c(t).find("[info-path]").each(function() {
            var n = $(this);
            var r = n.attr("info-path").split(",");
            f.make(n, m(r, t))
        });
        c(t).find("[list-path]").each(function() {
            var n = $(this);
            var r = n.attr("list-path").split(",");
            o.make(n, m(r, t))
        });
        c(t).find("#back-cart").click(function() {
            e.emit(a, "backCart", {})
        });
        c(t).find("[hoverup]").each(i.jq(i.hoverUpBySelector(r.__, "[hover]")))
    }
    function h(t) {
        c(t).html(u.listOfItem_main(p(t)));
        c(t).find("[hoverup]").each(i.jq(i.hoverUpBySelector(r.__, "[hover]")))
    }
    function d(t, n) {
        var i = r.map(r.pipe(r.prop("allItems"), r.map(r.prop("items"))), n);
        function e(t) {
            return r.reduce(r.concat, [], r.map(r.ifn(r.is(Array), e, r.of), t))
        }
        return r.filter(t, e(i))
    }
    function v(t, n) {
        return n
    }
    function I(t, n) {
        var r = p(n);
        return util.filter(t, r)
    }
    var y = r.cond([[$config.isGomeVirtualCardSite, I], [r.T, r.converge(d, [r.identity, r.pipe(v, p)])]]);
    function _(t, n) {
        var i = r.find(r.eq(t));
        var e = r.find(r.pipe(r.prop("items"), i));
        var u = r.find(r.pipe(r.prop("allItems"), e), p(n));
        return u
    }
    function k(t, n) {
        return _(t, n).shopId == "GOME"
    }
    function O(t, n) {
        function r(r, i) {
            if (r == 0)
                return t;
            if (r == 1)
                return n;
            if (r == 3)
                n = i;
            return n
        }
        l(r);
        e.emit(a, "renderEnd", r);
        return r
    }
    function g(t, n) {
        function r(r, i) {
            if (r == 0)
                return t;
            if (r == 1)
                return n;
            if (r == 3)
                n = i;
            return n
        }
        h(r);
        e.emit(a, "renderEnd", r);
        return r
    }
    t.listOfItem = {make: r.curry(O), makeShopping: r.curry(g), transData: s, filterAllItems: y, getShopByItem: _, isGome: k, TYPE: a}
}(this, request, util, util_ui, util_watch, GTPL, listOfItemMethod, listOfItemItems);
!function(o, n, i, t, r, e, c) {
    var p = "7preferential7";
    var s = r.emit(p);
    function g(o) {
        return o("div")
    }
    function f(o) {
        return o("data")
    }
    function a(o, n, t) {
        return t("data", d(i.assocPath(o, n, f(t))))
    }
    function h(o) {
        return f(o).vrbsos.sp.availablePoint
    }
    function m(o) {
        return f(o).verifyStatus == "VERIFY_NOT_ACTIVATED"
    }
    function u(o) {
        return f(o).verifyStatus == "MOBILE_NOT_ACTIVATED"
    }
    function d(o) {
        var n = 6;
        function t() {
            var t = o.vrbsos.bcs;
            return{bottom: t.length > n, list: $config.shoppingAtom.lq_more == "Y" ? i.take(n, t) : t}
        }
        function r() {
            var t = o.vrbsos.rcs;
            return{bottom: t.length > n, list: $config.shoppingAtom.hq_more == "Y" ? i.take(n, t) : t}
        }
        function e() {
            var t = o.vrbsos.scs;
            return{bottom: t.length > n, list: $config.shoppingAtom.dpq_more == "Y" ? i.take(n, t) : t}
        }
        function c() {
            var t = o.vrbsos.es;
            return{bottom: t.length > n, list: $config.shoppingAtom.dzq_more == "Y" ? i.take(n, t) : t}
        }
        return i.pipe(i.assoc("getBCS", t), i.assoc("getRCS", r), i.assoc("getES", c), i.assoc("getDCS", e))(o)
    }
    function l(o) {
        g(o).html(e.preferential_main(f(o)));
        A(o)
    }
    function A(o) {
        function n(o, n) {
            $config.shoppingAtom[o] = n
        }
        function r() {
            l(o)
        }
        function e(n, t, r) {
            var e = t == "true" ? "" : "canel";
            s(e + "select" + r, i.path(n.split("."), f(o)));
            var c = i.concat(n.split("."), ["checked"]);
            var p = i.concat(n.split("."), ["selected"]);
            a(c, t == "true" ? true : false, o);
            a(p, t == "true" ? true : false, o);
            $config.shoppingAtom.yzm_tip = ""
        }
        function p(o, n) {
            $config.shoppingAtom[o] = n.val()
        }
        function m(o) {
            $config.shoppingAtom[o] = new Date - 0
        }
        function u() {
            $config.shoppingAtom.mdhyjf_tip = "";
            if (!c.validate([[{txt: $config.shoppingAtom.mdhyjf, max: h(o)}, "mdhyjf", function(o) {
                        $config.shoppingAtom.mdhyjf_tip = o
                    }]])) {
                r();
                return
            }
            s("changeInto", {text: $config.shoppingAtom.mdhyjf, errorfn: function(o) {
                    $config.shoppingAtom.mdhyjf_tip = o.errMsg;
                    r()
                }, okfn: function() {
                    $config.shoppingAtom.mdhyjf = ""
                }})
        }
        function d() {
            $config.shoppingAtom.yhj_tip = "";
            var o = [$config.shoppingAtom.yhj_bm, $config.shoppingAtom.yhj_jhm, $config.shoppingAtom.yhj_yzm];
            s("activeYCode", {cpno: $config.shoppingAtom.yhj_bm, acode: $config.shoppingAtom.yhj_jhm, c: $config.shoppingAtom.yhj_yzm, capCd: $config.shoppingAtom.yhj_img, errorfn: function(n) {
                    $config.shoppingAtom.yhj_tip = n.errMsg;
                    $config.shoppingAtom.yhj_bm = o[0];
                    $config.shoppingAtom.yhj_jhm = o[1];
                    $config.shoppingAtom.yhj_yzm = o[2];
                    r()
                }, successfn: function() {
                    panel.success("激活成功")
                }});
            $config.shoppingAtom.yhj_bm = "";
            $config.shoppingAtom.yhj_jhm = "";
            $config.shoppingAtom.yhj_yzm = "";
            $config.shoppingAtom.yhj_tip = ""
        }
        function A() {
            if ($config.shoppingAtom.dzqma == "")
                return panel.alert("请输入电子券密码");
            s("dzqAction", {txt: $config.shoppingAtom.dzqma});
            $config.shoppingAtom.dzqma = ""
        }
        function y() {
            s("ryghAction", {txt: $config.shoppingAtom.rygh, errfn: function(o) {
                    $config.shoppingAtom.rygh_tip = o.errMsg;
                    r()
                }});
            $config.shoppingAtom.rygh = "";
            $config.shoppingAtom.rygh_tip = ""
        }
        function _() {
            s("ryghCanel", null)
        }
        function v() {
            if (!$config.shoppingAtom.ecard_1 || !$config.shoppingAtom.ecard_2 || !$config.shoppingAtom.ecard_3 || !$config.shoppingAtom.ecard_4) {
                panel.error("请输入正确的16位密码");
                return
            }
            if (!$config.shoppingAtom.ecard_yzm) {
                panel.error("请输入验证码");
                return
            }
            s("bindECard", {ecartNumber: $config.shoppingAtom.ecard_1 + $config.shoppingAtom.ecard_2 + $config.shoppingAtom.ecard_3 + $config.shoppingAtom.ecard_4, imageCode: $config.shoppingAtom.ecard_yzm, capcd: $config.shoppingAtom.yhj_img})
        }
        function j() {
            $config.shoppingAtom.yzm_tip = "";
            s("payRegAction", {captcha: $config.shoppingAtom.yzm, capcd: $config.shoppingAtom.yzm_img, paypasswd: $config.shoppingAtom.yzm_pw, errorfn: function(o) {
                    $config.shoppingAtom.yzm_tip = o.errMsg;
                    r()
                }});
            $config.shoppingAtom.yzm = "";
            $config.shoppingAtom.yzm_pw = ""
        }
        function b(o) {
        }
        g(o).find(".bind-e-card-wrap").each(function(o, n) {
            var t = $(this);
            t.find("input.e-num").on("keyup", function(o) {
                var n = $(this).val().replace(/[^a-zA-Z0-9]/g, "");
                if (n.length >= 4) {
                    $(this).val(i.take(4, n));
                    var t = $(this).nextAll("input.e-num").eq(0);
                    if (n.length == 4)
                        return t.focus();
                    t.val(i.drop(4, n)).focus().trigger("keyup")
                } else {
                    $(this).val(n)
                }
            }).on("paste", function() {
                $(this).val("").nextAll("input.e-num").val("")
            })
        });
        g(o).find("[more-btn]").each(function() {
            $(this).hover(function() {
                $(this).find(".line_up").css({"border-color": "#f00"});
                $(this).find(".moreyhq").css({"border-color": "#f00", color: "#f00"});
                var o = $(this).find(".moreyhq").find("i");
                if (o.is(".arrowdown"))
                    o.removeClass("arrowdown").addClass("arrowdown_red");
                else
                    o.removeClass("arrowup2").addClass("arrowup_red")
            }, function() {
                $(this).find(".line_up").css("border-color", "");
                $(this).find(".moreyhq").css({"border-color": "", color: ""});
                var o = $(this).find(".moreyhq").find("i");
                if (o.is(".arrowdown_red"))
                    o.removeClass("arrowdown_red").addClass("arrowdown");
                else
                    o.removeClass("arrowup_red").addClass("arrowup2")
            })
        });
        t.gpipes(g(o), {setStage: n, render: r, assocPathSelected: e, setValueStage: p, setTimeLongStage: m, changeInto: u, activeYCode: d, dzqAction: A, ryghAction: y, payRegAction: j, ryghCanel: _, bindECard: v})
    }
    function y(o, n) {
        function i(t, r) {
            if (t == "div")
                return o;
            if (r != null) {
                n = r;
                return i
            }
            if (t == "data")
                return n
        }
        l(i);
        return i
    }
    o.preferential = {make: i.curry(y), TYPE: p, transData: d, render: l, isNotUnsealPwd: m}
}(this, request, util, util_ui, util_watch, GTPL, validate);
!function(n, t, i, r, o, c) {
    var u = "7commit-order7";
    function e(n) {
        return n("div")
    }
    function m(n) {
        return n("data")
    }
    function f(n) {
        var t = m(n);
        if (t.ppcAmount == null)
            t.ppcAmount = null;
        e(n).html(c.commitOrder_main(m(n)));
        l(n)
    }
    function l(n) {
        e(n).find("#id_commit").on("click", function() {
            e(n).find("#id_commit_div").html('<span class="fontRed strong pr20">提交中. . .</span>');
            o.emit(u, "commit", "commit")
        });
        e(n).find("[agreen-play]").on("click", function() {
            $config.shoppingAtom.presell_tyzfdj = !$config.shoppingAtom.presell_tyzfdj;
            return f(n)
        })
    }
    function d(n, t) {
        function i(r, o) {
            if (r == "div")
                return n;
            if (o != null) {
                t = o;
                return i
            }
            if (r == "data")
                return t
        }
        f(i);
        return i
    }
    n.commitOrder = {make: i.curry(d), render: f, TYPE: u}
}(this, request, util, util_ui, util_watch, GTPL);
!function(e, i, t, a, n, d, o, s) {
    var r = "7invoice7";
    var c = n.emit(r);
    function l(e) {
        return e("div")
    }
    function v(e) {
        return e("data")
    }
    function f(e) {
        function i(e) {
            var i = [];
            for (var t = 0; t < e.length; t++)
                i.push(f(e[t]));
            return i
        }
        function a(e) {
            var i = {};
            for (var t in e)
                i[t] = f(e[t]);
            return i
        }
        return t.cond([[t.is(Array), i], [t.is(Object), a], [t.T, t.identity]])(e)
    }
    function u(e) {
    }
    function h(e, i, a) {
        a("data", y(t.assocPath(e, i, v(a))));
        return a
    }
    function p(e) {
        var i = v(e);
        if (i.open) {
            C(e, false)
        } else {
            l(e).html(d.invoice_main(v(e)))
        }
        m(e)
    }
    function g(e) {
        var i = t.find(function(e) {
            return e.invoiceType.code == 0
        }, e.invoices);
        if (i.consigneeInfo == null) {
            i.consigneeInfo = {address: {}}
        }
    }
    function y(e) {
        if (e.invoices.length == 0)
            return e;
        if ($config.isGomeVirtualCardSite()) {
            g(e)
        }
        var i = t.find(t.path(["invoiceType", "selected"]), e.invoices);
        var a = t.find(t.path(["selected"]), i.headTypes || []);
        var n = t.find(t.path(["selected"]), i.invoiceContentTypes) || {};
        e.selectedInvoce = i;
        e.selectedInvoce.path = "invoices," + t.findIdx(t.path(["invoiceType", "selected"]), e.invoices);
        e.selectedHead = a || {};
        e.selectedHead.path = i.path + ",headTypes," + t.findIdx(t.path(["selected"]), i.headTypes || []);
        e.selectedContentType = n;
        e.selectedContentType.path = e.selectedInvoce.path + ",invoiceContentTypes," + t.findIdx(t.path(["selected"]), i.invoiceContentTypes);
        return e
    }
    function m(e) {
        l(e).find("[g-modify-path]").on("click", t.partial(C, [e, true]))
    }
    var _ = t.curry(function(e, i) {
        return t.map(function(e) {
            if (e == i)
                return t.assoc("selected", true, e);
            return t.assoc("selected", false, e)
        }, e)
    });
    function C(e, i) {
        var n = $.gDialog({html: d.invoice_modify(t.assoc("haveClose", i, v(e))), modal: {}});
        n.show();
        function o(e) {
            return C(e, i)
        }
        var r = function(e) {
            if (e.selectedInvoce.consigneeInfo) {
                var i = e.selectedInvoce.consigneeInfo;
                return[i.address.countyCode, i.address.provinceName + i.address.cityName + i.address.countyName + i.address.townName, i.address.cityCode, i.address.provinceCode, i.address.townCode].join("|")
            }
        }(v(e));
        n.$dialog.find("#id_address_select").gCity({gc_dat: r, gc_ads: "chtm", gc_evt: function() {
                var i = this.sid + "." + this.cid + "." + this.xid + "." + this.zid;
                $("#id_address_select").find("[name=address]").attr("value", i);
                $("#id_address_select").find("[show-label]").html(this.chtm);
                $("#id_address_select").find(".add_out,.gCity").hide();
                n.$dialog.find("[g-tip-validate=address]").html("");
                var t = n.$dialog.find("#id_address_select");
                var a = t.attr("value-path").split(",");
                t.find("[name='address']").removeClass("error");
                h(a, {provinceCode: this.sid, provinceName: this.snam, cityCode: this.cid, cityName: this.cnam, countyCode: this.xid, countyName: this.xnam, townCode: this.zid, townName: this.znam, detailedAddress: n.$dialog.find("[name='detailedAddress']").val()}, e)
            }});
        n.$dialog.find('[name="address"]').toggle(function() {
            n.$dialog.find(".add_out,.gCity").show()
        }, function() {
            n.$dialog.find(".add_out,.gCity").hide()
        });
        n.$dialog.find("[g-area-close]").on("click", function() {
            n.$dialog.find(".add_out,.gCity").hide()
        });
        n.$dialog.find("[g-close]").on("click", function() {
            a.hide(n);
            c("closeInvoice", null)
        });
        n.$dialog.find("[g-value-path]").on("click", function() {
            var i = $(this);
            var t = a.gvaluePath(i);
            var d = a.gvalue(i);
            n.hide();
            o(h(t, d, e))
        });
        n.$dialog.find("[g-i-path]").on("click", a.jqpipe(a.attr("g-i-path"), t.split(","), t.path(t.__, v(e)), function(i) {
            n.hide();
            return h(["invoices"], t.map(function(e) {
                if (i == e)
                    return t.assocPath(["invoiceType", "selected"], true, e);
                return t.assocPath(["invoiceType", "selected"], false, e)
            }, v(e).invoices), e)
        }, o));
        n.$dialog.find("[g-h-path]").on("click", a.jqpipe(a.attr("g-h-path"), t.split(","), t.path(t.__, v(e)), function(i) {
            n.hide();
            var a = v(e).selectedInvoce.path.split(",").concat(["headTypes"]);
            return h(a, _(t.path(a, v(e)), i), e)
        }, o));
        n.$dialog.find("[g-c-path]").on("click", a.jqpipe(a.attr("g-c-path"), t.split(","), t.path(t.__, v(e)), function(i) {
            n.hide();
            var a = v(e).selectedInvoce.path.split(",").concat(["invoiceContentTypes"]);
            return h(a, _(t.path(a, v(e)), i), e)
        }, o));
        n.$dialog.find("[value-path]").on("keyup", function() {
            var i = $(this);
            var n = t.pipe(a.attr("value-path"), t.split(","))(i);
            var d = i.val();
            h(n, d, e)
        });
        a.hoverUp(n.$dialog.find("[g-tip=dzfp],[g-tip-for=dzfp]"))(n.$dialog.find("[g-tip-for=dzfp]"));
        n.$dialog.find("[no-modify]").one("mousedown", function() {
            $(this).removeAttr("no-modify").val("").trigger("keyup")
        });
        n.$dialog.find("[g-validate]").blur(function() {
            var i = $(this).attr("g-validate");
            var d = t.pipe(a.attr("value-path"), t.split(","))($(this));
            var o = n.$dialog.find("[g-tip-validate=" + i + "]");
            var r = n.$dialog.find("[g-validate=" + i + "]");
            function c(a) {
                if (t.isEmpty(a)) {
                    r.removeClass("error")
                } else {
                    r.addClass("error")
                }
                o.html(a);
                h(t.concat(t.init(d), [i]), a, e)
            }
            var l = $(this).val() || $(this).attr("value");
            var v = [[l, i, c]];
            s.validate(v)
        });
        n.$dialog.find("#saveInvoice").on("click", function() {
            n.$dialog.find("input").trigger("keyup");
            var i = y(v(e));
            if (i.invoiceNeedType == "N") {
                c("noSaveInvoice", false);
                n.hide();
                p(e);
                return
            }
            var d = [];
            n.$dialog.find("[g-validate]").each(function() {
                var i = $(this).attr("g-validate");
                var o = t.pipe(a.attr("value-path"), t.split(","))($(this));
                var s = n.$dialog.find("[g-tip-validate=" + i + "]");
                var r = n.$dialog.find("[g-validate=" + i + "]");
                function c(a) {
                    if (t.isEmpty(a)) {
                        r.removeClass("error")
                    } else {
                        r.addClass("error")
                    }
                    s.html(a);
                    h(t.concat(t.init(o), [i]), a, e)
                }
                var l = $(this).val() || $(this).attr("value");
                if ($(this).attr("no-modify") != "y") {
                    d.push([l, i, c])
                }
            });
            if (s.validate(d)) {
                c("saveInvoice", i);
                n.hide();
                p(h(["open"], false, e))
            }
        })
    }
    function T(e, i) {
        function t(a, n) {
            if (a == "div")
                return e;
            if (n != null) {
                i = n;
                return t
            }
            if (a == "data")
                return i
        }
        p(t);
        return t
    }
    e.invoice = {make: t.curry(T), transData: y, TYPE: r}
}(this, request, util, util_ui, util_watch, GTPL, panel, validate);
!function(r, n, e, t, a, s) {
    function c(r, n, t) {
        if (t.success)
            return a();
        else
            r(t);
        function a() {
            var r = null;
            try {
                r = n(t)
            } catch (a) {
                e.error("系统错误请稍后再试!");
                if (window.console && window.console.error)
                    console.error(a)
            }
            return r
        }
        return a()
    }
    function o(r, n) {
        if (!n.success) {
            return r(n)
        }
    }
    function u(r, n) {
        if (n.success)
            return r(n)
    }
    function i(r, e) {
        function t(r) {
            var n = {};
            n.name = r.name;
            n.nameArea = r.address.provinceName;
            n.areas = [r.address.cityName, r.address.countyName, r.address.townName, r.address.detailedAddress];
            n.isdefault = r.address["default"];
            n.selected = r.selected;
            n.origin = r;
            return n
        }
        var a = {list: n.map(t, e.data.consigneeInfos), open: e.data.open};
        return r(a)
    }
    function d(r, n) {
        return r(t.transData(n.data.paymentMethods))
    }
    function f(r, n) {
        return r(preferential.transData(n.data))
    }
    function l(r, n) {
        return r(n.data)
    }
    function m(r, n) {
        return r(s.transData(n.data))
    }
    function y(r, n) {
        return r(a.transData(n.data))
    }
    function p(r, n, e) {
        var t = n(e);
        $config.shoppingInstenceAtom[r] = t;
        return t
    }
    r.interceptor = {commonerror: n.curry(c), addressTransData: n.curry(i), paymentTransData: n.curry(d), invoiceTransData: n.curry(y), whenError: n.curry(o), transData: n.curry(l), preferentialTransData: n.curry(f), listOfItemTransData: n.curry(m), setInstanceAtom: n.curry(p), unlessError: n.curry(u)}
}(this, util, panel, payment, invoice, listOfItem);
!function(e, n, t, o, r, a, i, s, c, d, p, u, l) {
    var f = "shopping";
    function m() {
        return $page.site == "gomeEntityCard"
    }
    function h() {
        return $page.site == "gomeVirtualCard"
    }
    function g() {
        return $page.site == "haiwaigou"
    }
    function v() {
        return $page.site == "allowance"
    }
    function y() {
        return $page.site == "secondHand"
    }
    function I() {
        return $page.site == "presell"
    }
    function A() {
        if ($page.site == "home")
            return"/";
        if ($page.site == "haiwaigou")
            return"/";
        if ($page.site == "allowance")
            return"/";
        if ($page.site == "gomeEntityCard")
            return"http://card" + cookieDomain;
        if ($page.site == "gomeVirtualCard")
            return"http://card" + cookieDomain;
        if ($page.site == "warranty") {
            var e = window.location.href.split("?")[1];
            if (e != null)
                e = e.split("&")[0];
            return"/warranty/cart?" + e
        }
        return"/" + $page.site + "/cart"
    }
    function C(e, n) {
        return function(t) {
            return[e(t), n(t)]
        }
    }
    function w(e, n) {
        return C(T(e), u.unlessError(n))
    }
    function b(e, n) {
        return C(u.whenError(e), u.unlessError(n))
    }
    function E(e, n) {
        panel.mask();
        return D(e, n).always(panel.maskHide)
    }
    function D(e, n) {
        if (g()) {
            return r.getApi("home", e, n)
        }
        if ($page.site == "allowance")
            return r.getApi("home", e, n);
        return r.getApi($page.site, e, n)
    }
    function S() {
        if ($config.shoppingInstenceAtom.address == null)
            return false;
        var e = a.selectedAddress($config.shoppingInstenceAtom.address);
        if (e == null)
            return false;
        $.cookie("atgregion", [e.origin.address.countyCode, e.origin.address.provinceName + e.origin.address.cityName + e.origin.address.countyName + e.origin.address.townName, e.origin.address.cityCode, e.origin.address.provinceCode, e.origin.address.townCode].join("|"), {expires: 30, path: "/", domain: cookieDomain});
        return true
    }
    function k() {
        t.redir(A())
    }
    function N(e) {
        if ($page.site == "warranty")
            return false;
        if (e == null) {
            panel.alert("商品清单异常");
            return true
        }
        var o = n.pipe(n.prop("inventoryState"), n.eq("NO_GOODS"));
        var r = n.pipe(n.prop("inventoryState"), n.eq("DELIVERY_NOT_SUPPORTED"));
        var i = n.pipe(n.prop("inventoryState"), n.eq("OFF"));
        var c = s.filterAllItems(n.anyPass([o, r, i]), e);
        var d = n.cond([[m, n.always("无货")], [r, n.always("该区域暂不支持配送")], [o, n.always("该区域无货")], [i, n.always("已下架")]]);
        if (n.isEmpty(c)) {
            return false
        }
        function p() {
            S();
            t.redir(A())
        }
        function u(e) {
            a.modify($config.shoppingInstenceAtom.address);
            e.hide()
        }
        function l() {
            if (m() || h()) {
                return[{clazz: "btn btn-primary btn-w83 mr50", btnName: "去逛逛", click: p}]
            }
            if (i(c[0])) {
                return[{clazz: "btn btn-primary btn-w83 mr50", btnName: "返回购物车修改", click: p}]
            }
            return[{clazz: "btn btn-primary btn-w83 mr50", btnName: "返回购物车修改", click: p}, {clazz: "btn btn-default", btnName: "更换收货地址", click: u}]
        }
        panel.confirm({type: panel.TYPE.WARN, body: ['<p class="name_over2" style="width:280px;">', c[0].itemName, "</p>", c.length > 1 ? "等" : "", "商品", '<span class="fontRed">', d(c[0]), "</span>"].join(""), btns: l(), close: t.hide});
        return true
    }
    function O(e) {
        function o() {
            var t = "返回购物车";
            if (m() || h()) {
                t = "去逛逛"
            }
            panel.confirm({type: panel.TYPE.WARN, body: e.errMsg, btns: [{clazz: "btn btn-primary", btnName: t, click: n.pipe(S, k)}], close: false})
        }
        if (e.status == "GO_CART")
            return k();
        if (e.status == "CLICK_GO_CART")
            return o();
        if (e.status == "GO_LOGIN")
            return t.redir("http://login" + cookieDomain + "/login");
        return panel.error($config.renderError(e))
    }
    var P = n.pipe(u.unlessError, u.commonerror(O));
    var T = n.pipe(u.whenError, u.commonerror(O));
    var z = n.pipe(u.commonerror(O));
    var _ = n.pipe(u.setInstanceAtom("address"), u.addressTransData, P);
    var R = _(a.make($("#address")));
    var Y = n.pipe(u.setInstanceAtom("payment"), u.paymentTransData, P);
    var G = Y(i.make($("#payment")));
    var x = n.pipe(u.setInstanceAtom("invoice"), u.invoiceTransData, P);
    var L = x(p.make($("#invoice")));
    var M = n.pipe(u.setInstanceAtom("listOfItem"), u.listOfItemTransData, P);
    var V = M(s.make($("#listOfItem")));
    var j = n.pipe(u.setInstanceAtom("preferential"), u.preferentialTransData, P);
    var Z = j(d.make($("#preferential")));
    var q = n.pipe(u.setInstanceAtom("commitOrder"), u.transData, P);
    var H = q(c.make($("#commitOrder")));
    var B = "consignee/addAddress";
    var U = "consignee/updateAddress";
    if (v()) {
        B = "consignee/saveAllowanceAddress";
        U = "consignee/saveAllowanceAddress"
    }
    function X() {
        var e = P(u.transData(authorization.make($("#hwg-auth"))));
        var n = function(n) {
            if (n.success)
                o.emit(f, "loadAuth", {});
            E("haiwaigou/getIdentification?_=" + (new Date).getTime()).then(e)
        };
        o.watch(authorization.TYPE, "saveAction", function(e) {
            E("haiwaigou/saveIdentification", {idCardNumber: e.card, idCardRealName: e.name}).then(z(n))
        });
        return{renderAuthorization: e}
    }
    function F() {
        var e = n.pipe(u.setInstanceAtom("listOfItem"), u.transData, P);
        var t = e(s.makeShopping($("#listOfItem")));
        var r = n.pipe(u.setInstanceAtom("entityCard"), u.transData, P)(entityCard.make($("#entityCard")));
        function a(e) {
            E("transport/saveVirtualCardSMSMobile", {mobile: e.phone}).then(z(function() {
            }))
        }
        o.watch(entityCard.TYPE, "savePhone", a);
        return{renderListOfItemShopping: t, renderEntityCard: r}
    }
    var J = n.cond([[h, n.pipe(n.once(F), K)], [g, n.pipe(n.once(X), W)], [n.T, Q]]);
    J();
    function W(e) {
        return r.parall(E("order/initHWGOrder"), E("haiwaigou/getIdentification?_=" + (new Date).getTime())).then(r.res(function(n, r) {
            var i = e.renderAuthorization(r);
            if (authorization.notAuthorization(i)) {
                t.redir($config.URL.authorization);
                return
            }
            if (authorization.notAuth(i)) {
                o.watchOnce(f, "loadAuth", function(e) {
                    J()
                });
                return
            }
            P(function(e) {
                R({success: true, data: e.data.cis});
                G({success: true, data: e.data.pg});
                V({success: true, data: e.data.dsgs});
                Z({success: true, data: e.data.vrbsos});
                H({success: true, data: e.data.checkoutSummary});
                if (a.notPupup($config.shoppingInstenceAtom.address)) {
                    L({success: true, data: e.data.ivh})
                }
                wn()
            })(n)
        }))
    }
    function K(e) {
        return E("order/initOrder").then(P(function n(t) {
            $("#address").hide();
            e.renderEntityCard({success: true, data: t.data.smnpc});
            G({success: true, data: t.data.pg});
            e.renderListOfItemShopping({success: true, data: t.data.gvccis});
            Z({success: true, data: t.data.vrbsos});
            H({success: true, data: t.data.checkoutSummary});
            L({success: true, data: t.data.ivh});
            wn()
        }))
    }
    function Q() {
        return E("order/initOrder").then(P(function e(n) {
            R({success: true, data: n.data.cis});
            if ($page.site == "presell") {
                $config.shoppingAtom.deliveryPreSell = n.data.deliveryPreSell
            }
            G({success: true, data: n.data.pg});
            V({success: true, data: n.data.dsgs});
            Z({success: true, data: n.data.vrbsos});
            H({success: true, data: n.data.checkoutSummary});
            if (a.notPupup($config.shoppingInstenceAtom.address)) {
                L({success: true, data: n.data.ivh})
            }
            wn()
        }))
    }
    function en(e) {
        var n = e.address.split(".");
        return param = {firstName: e.consignee, address: e.detailAddress, mobile: e.phone, phoneNumber: e.call, state: n[0], city: n[1], county: n[2], town: n[3], email: e.email, isDefault: e.defaultAddress}
    }
    function nn(e) {
        return n.pipe(en, n.assoc("id", e.id))(e)
    }
    var tn = w(J, function(e) {
        o.watchOnce(s.TYPE, "renderEnd", N);
        return J(e)
    });
    function on(e) {
        D(U, t.filterNullOrEmptyObj(e)).then(tn)
    }
    function rn(e) {
        D(B, t.filterNullOrEmptyObj(e)).then(tn)
    }
    function an(e) {
        E("consignee/setDefaultAddress", {id: e.origin.owerId}).then(T(J))
    }
    function sn(e) {
        D("consignee/removeAddress", {id: e.origin.owerId}).then(tn)
    }
    function cn(e) {
        D("consignee/selectAddress", {id: e}).then(tn)
    }
    o.watchDSL(a.TYPE, {selected: n.pipe(n.path(["origin", "owerId"]), cn), updateAddress: n.pipe(nn, on), newAddress: n.pipe(en, rn), setDefaultAddress: an, removeAddress: sn});
    function dn(e) {
        D("payment/savePayment", {pm: e}).then(z(J))
    }
    function pn(e) {
        D("payment/savePayment", {pm: e.code, storeid: e.id, storename: e.name}).then(z(J))
    }
    function un() {
        var e = $config.shoppingInstenceAtom.commitOrder;
        c.render(e)
    }
    function ln(e) {
        D("transport/savePreSellSMSMobile", {mobile: e.phone, sno: e.shopNo, sgid: e.shippingGroupId}).then(z(J))
    }
    o.watchDSL(i.TYPE, {savePayment: n.pipe(n.prop("c"), dn), renderCommitOrder: un, saveTailPhone: ln, savePaymentStore: pn});
    function fn(e) {
        D("transport/saveShippingMethod", {sm: e.selectedExpress.code, shopno: e.shop.shopId, sgid: e.shop.shippingGroupId}).then(z(J))
    }
    function mn(e) {
        D("transport/saveGomeStore", {shopno: e.shop.shopId, sm: e.selectedExpress.code, sgid: e.shop.shippingGroupId, storeid: e.selectedExpress.storeId}).then(z(J))
    }
    function hn(e) {
        D("payment/savePayment", {t: e.code, pm: e.parentCode}).then(z(J))
    }
    function gn(e) {
        D("transport/saveComments", {cm: e.cm, shopno: e.shop.shopId, sgid: e.shop.shippingGroupId}).then(T(J))
    }
    function vn(e) {
        var n = null;
        if (e.stime.code == "DAY") {
            n = {udt: e.sitem.code, fdt: e.stime.type, ft: e.stime.fixedTime, udtl: e.stime.selectSlot}
        }
        if (e.stime.code == "XSD") {
            n = {udt: e.stime.postBackCode, fdt: e.stime.type, ft: e.sitem.endTime, udtl: e.sitem.code}
        }
        if (e.stime.code == "JSD") {
            n = {udt: e.stime.postBackCode, fdt: e.sitem.type, ft: e.sitem.fixedTime, udtl: e.sitem.slotCode}
        }
        n.shopno = e.shop.shopId;
        n.sgid = e.shop.shippingGroupId;
        E("transport/saveDeliveryTime", t.filterNullOrEmptyObj(n)).then(z(J))
    }
    function yn(e) {
        E("transport/saveRackInstall", {racktype: e}).then(T(J))
    }
    o.watchDSL(s.TYPE, {selectExpress: fn, selectPickingUp: mn, savePayment: hn, saveComments: gn, selectTime: vn, gjaz: yn, backCart: n.pipe(S, k)});
    function In() {
        E("invoice/getInvoice").then(L)
    }
    function An(e) {
        D("invoice/saveInvoice", {need: false}).then(T(In))
    }
    function Cn(e) {
        var n = {need: true, typeCode: e.selectedInvoce.invoiceType.code};
        n.headCode = (e.selectedHead || {}).code;
        n.head = (e.selectedHead || {}).content;
        n.taxpayerNo = e.selectedInvoce.taxPayerNo;
        n.details = e.selectedContentType.code;
        n.elecMobile = e.selectedInvoce.mobilePhone;
        n.elecMail = e.selectedInvoce.email;
        n.VATName = e.selectedInvoce.consigneeName;
        n.VATAddress = e.selectedInvoce.registeredAddress;
        n.VATPhone = e.selectedInvoce.consigneeMobilePhone;
        if (e.selectedInvoce.consigneeInfo) {
            n.firstName = e.selectedInvoce.consigneeInfo.name;
            n.state = e.selectedInvoce.consigneeInfo.address.provinceCode;
            n.city = e.selectedInvoce.consigneeInfo.address.cityCode;
            n.county = e.selectedInvoce.consigneeInfo.address.countyCode;
            n.town = e.selectedInvoce.consigneeInfo.address.townCode;
            n.address = e.selectedInvoce.consigneeInfo.address.detailedAddress;
            n.mobile = e.selectedInvoce.consigneeInfo.mobileNumber;
            n.phoneNumber = e.selectedInvoce.consigneeInfo.phoneNumber;
            n.email = e.selectedInvoce.consigneeInfo.email
        }
        E("invoice/saveInvoice", t.filterNullOrEmptyObj(n)).then(z(In))
    }
    o.watchDSL(p.TYPE, {noSaveInvoice: An, saveInvoice: Cn, closeInvoice: In});
    function wn() {
        D("coupon/getRef").then(u.unlessError(function(e) {
            $config.shoppingAtom.referrerInfo = e.data;
            var n = $config.shoppingInstenceAtom.preferential;
            d.render(n)
        }))
    }
    function $n(e) {
        D("coupon/selectBlueCoupon", {tid: e.id}).then(z(J))
    }
    function bn(e) {
        D("coupon/cancelBlueCoupon", {tid: e.id}).then(z(J))
    }
    function En(e) {
        D("coupon/selectRedCoupon", {tids: e.id}).then(z(J))
    }
    function Dn(e) {
        D("coupon/cancelRedCoupon", {tids: e.id}).then(z(J))
    }
    function Sn(e) {
        D("coupon/selectShopCoupon", {tid: e.couponNo, shopno: e.shopNo, sgid: e.sgid}).then(z(J))
    }
    function kn(e) {
        D("coupon/cancelShopCoupon", {tid: e.couponNo, shopno: e.shopNo, sgid: e.sgid}).then(z(J))
    }
    function Nn(e) {
        D("payment/selectECoupon", {eno: e.ecouponCode}).then(z(J))
    }
    function On(e) {
        D("payment/cancelECoupon", {eno: e.ecouponCode}).then(z(J))
    }
    function Pn(e) {
        D("payment/useIntegral").then(z(J))
    }
    function Tn(e) {
        D("payment/cancleIntegral").then(z(J))
    }
    function zn(e) {
        D("payment/useVirtualAccount").then(z(J))
    }
    function _n(e) {
        D("payment/cancelVirtualAccount").then(z(J))
    }
    function Rn(e) {
        D("payment/pointExchange", {pa: e.text}).then(b(e.errorfn, n.pipe(n.tap(e.okfn), J)))
    }
    function Yn(e) {
        D("coupon/activateCoupon", {cpno: e.cpno, acode: e.acode, captcha: e.c, capcd: e.capCd}).then(b(e.errorfn, n.pipe(J, e.successfn)))
    }
    function Gn(e) {
        D("payment/verifyECoupon", {eno: e.txt}).then(z(J))
    }
    function xn(e) {
        D("payment/applyStoreSeller", {sellerid: e.txt}).then(b(e.errfn, wn))
    }
    function Ln(e) {
        function n(n) {
            if (n.errCode == "0010330040") {
                return J()
            }
            return e.errorfn(n)
        }
        D("payment/validatePayPwd", {paypasswd: e.paypasswd}).then(b(n, J))
    }
    function Mn(e) {
        D("payment/cancelStoreSeller").then(z(wn))
    }
    function Vn(e) {
        D("card/selectECard", {cno: e.cardCode}).then(z(J))
    }
    function jn(e) {
        D("card/cancelECard", {cno: e.cardCode}).then(z(J))
    }
    function Zn(e) {
        r.reqp("http://safe" + cookieDomain + "/myaccount/prepaidCard/fingerPrint", {}, "ckdata001").then(function() {
            r.reqp("http://safe" + cookieDomain + "/myaccount/prepaidCard/bindCard", {prepaidCardNo: e.ecartNumber, imageCode: e.imageCode, capCd: e.capcd}, "ckdata002").then(function(e) {
                if (e.error) {
                    panel.error(e.error.message);
                    $config.shoppingAtom.ecard_yzm = "";
                    J()
                } else {
                    panel.success("美通卡绑定成功！");
                    $config.shoppingAtom.ecard_4 = "";
                    $config.shoppingAtom.ecard_3 = "";
                    $config.shoppingAtom.ecard_2 = "";
                    $config.shoppingAtom.ecard_1 = "";
                    $config.shoppingAtom.ecard_yzm = "";
                    J()
                }
            })
        })
    }
    function qn(e) {
        return function(n) {
            if (d.isNotUnsealPwd($config.shoppingInstenceAtom.preferential)) {
                panel.alert($config.renderError({errCode: "f1"}));
                D("coupon/getUserAllAssets").then(J);
                return
            }
            return e(n)
        }
    }
    function Hn(e) {
        D("payment/useGomedo").then(z(J))
    }
    function Bn(e) {
        D("payment/cancelGomedo").then(z(J))
    }
    o.watchDSL(d.TYPE, {selectB: $n, canelselectB: bn, selectR: qn(En), canelselectR: Dn, selectZXMD: Hn, canelselectZXMD: Bn, selectD: Sn, canelselectD: kn, selectDZ: Nn, selectEC: Vn, canelselectEC: jn, canelselectDZ: On, selectZXJF: qn(Pn), canelselectZXJF: Tn, selectZHYE: qn(zn), canelselectZHYE: _n, changeInto: Rn, activeYCode: Yn, dzqAction: Gn, ryghAction: xn, payRegAction: Ln, ryghCanel: Mn, bindECard: Zn});
    function Un() {
        var e = N($config.shoppingInstenceAtom.listOfItem);
        if (e) {
            return J()
        }
        if (h()) {
            if (!entityCard.validatefn($config.shoppingInstenceAtom.entityCard)) {
                window.scrollTo(0, 0);
                c.render($config.shoppingInstenceAtom.commitOrder);
                return false
            }
        }
        E("checkout/commit").then(C(u.unlessError(function(e) {
            if (e.data.jumpPage == "cashier") {
                t.redir("http://success" + cookieDomain + "/order/paymentInfo?orderIdsStr=" + e.data.cartId + "&userId=" + $.cookie("sid") + "&isCommittedPage=true")
            } else {
                t.redir("/order-success?o=" + e.data.cartId)
            }
        }), T(J)))
    }
    o.watchDSL(c.TYPE, {commit: Un});
    function Xn(e) {
        return E("transport/getGomeStores", {citycode: e})
    }
    l.$$.getPickingUpStores = Xn
}(this, util, util_ui, util_watch, request, address, payment, listOfItem, commitOrder, preferential, invoice, interceptor, listOfItemMethod);